I don't know if there is anyone else that uses SFU/SUA... But I thought I'd share some tweaks to get SIMH to compile & run...<div><br></div><div>In sim_timer.c the lines:</div><div><div>(void) nanosleep (&treq, NULL);</div>
<div><br></div><div>will fail as SUA/SFU don't have nanosleep, however you can replace it with usleep and it'll work... I use this:</div><div>(void) usleep (milliseconds*1000);</div><div><br></div><div>And for some reason some time structures don't get defined so above the defintion of uint32 sim_os_msec  to satisfy  'foo', simply place in:</div>
<div><div>struct timezone {</div><div>        int                             tz_minuteswest;</div><div>        int                             tz_dsttime;</div><div>};</div><div><br></div><div>And above the definition of uint32 sim_os_ms_sleep_init (void) I placed in:</div>
<div><br></div><div>struct timespec {</div><div>        time_t  tv_sec;         /* seconds */</div><div>        long    tv_nsec;        /* nanoseconds */</div><div>};</div><div><br></div><div><br></div></div><div>In the file sim_sock.c the line:</div>
<div><div>timerclear (&tz);</div><div><br></div><div>will fail as there is no timerclear... So I just replaced it with the following:</div><div>memset(&tz,0x0,sizeof(tz));</div><div><br></div><div><br></div><div><br>
</div><div>I then downloaded & build gnu make 3.81 and I've confirmed that 32v will load on the VAX11/780 emulator and it will idle 'correctly'......</div><div><br></div><div>Although I'm using a x64 system, the default GCC is 32bit.... but I don't think that matters that much...</div>
</div></div>