1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 04:01:38 +00:00

SCP: Fold up include files used by all simulators

- Add common system includes used in may places which are allowed
  and thus added directly in sim_defs.h.
- Separate completely private system data structures and system APIs
  for use only by SCP library routines into sim_scp_private.h.
This commit is contained in:
Mark Pizzolato
2023-03-04 14:53:47 -10:00
parent bdf28cf7f8
commit 194b313179
20 changed files with 353 additions and 302 deletions

View File

@@ -369,7 +369,7 @@
------------------------------------------------------------------------------
*/
#include <ctype.h>
#include "sim_ether.h"
#include "sim_sock.h"
#include "sim_timer.h"
@@ -379,6 +379,10 @@
#include <unistd.h>
#endif
#if defined (USE_READER_THREAD)
#include <pthread.h>
#endif
#define MAX(a,b) (((a) > (b)) ? (a) : (b))
/* Internal routine - forward declaration */
@@ -1021,7 +1025,6 @@ const char *eth_capabilities(void)
/*============================================================================*/
#include <pcap.h>
#include <string.h>
#else
struct pcap_pkthdr {
uint32 caplen; /* length of portion present */
@@ -4505,8 +4508,6 @@ if (bpf_compile_skip_count)
return (errors == 0) ? SCPE_OK : SCPE_IERR;
}
#include <setjmp.h>
t_stat sim_ether_test (DEVICE *dptr, const char *cptr)
{
t_stat stat = SCPE_OK;