Cleanup for build on VMS

This commit is contained in:
Mark Pizzolato 2013-03-16 11:44:34 -07:00
parent c45a377c71
commit de483074e6
4 changed files with 14 additions and 8 deletions

View file

@ -1732,8 +1732,8 @@ if (status != SS$_NORMAL) {
}
if (devsts & UCB$M_BSY)
return 0; /* Would block */
status = sys$qio (0, port, IO$_WRITELBLK | IO$M_NOFORMAT,
NULL, 0, 0, buffer, count, 0, 0, 0, 0);
status = sys$qiow (0, port, IO$_WRITELBLK | IO$M_NOFORMAT,
NULL, 0, 0, buffer, count, 0, 0, 0, 0);
if (status != SS$_NORMAL) {
sim_error_serial ("write", status); /* report unexpected error */
return -1;

View file

@ -75,6 +75,12 @@
#if !defined (timerclear)
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
#endif
#if !defined (AI_NUMERICHOST)
#define AI_NUMERICHOST 0
#endif
#if defined (__VAX)
#define sockaddr_storage sockaddr
#endif
#endif
#if defined(__EMX__) /* OS/2 unique */
#if !defined (timerclear)

View file

@ -701,10 +701,10 @@ return (sim_idle_rate_ms != 0);
/* sim_timer_idle_capable - tell if the host is Idle capable and what the host OS tick size is */
uint32 sim_timer_idle_capable (uint32 *hoat_tick_ms)
uint32 sim_timer_idle_capable (uint32 *host_tick_ms)
{
if (hoat_tick_ms)
*hoat_tick_ms = sim_os_sleep_min_ms;
if (host_tick_ms)
*host_tick_ms = sim_os_sleep_min_ms;
return sim_idle_rate_ms;
}

View file

@ -2340,9 +2340,9 @@ while (sim_asynch_enabled) {
lp->a_active = TRUE;
pthread_mutex_unlock (&sim_tmxr_poll_lock);
term[0] = term[1] = 0;
status = sys$qio (0, lp->serport,
IO$_READLBLK | IO$M_NOECHO | IO$M_NOFILTR | IO$M_TIMED | IO$M_TRMNOECHO,
&iosb, 0, 0, buf, 1, 1, term, 0, 0);
status = sys$qiow (0, lp->serport,
IO$_READLBLK | IO$M_NOECHO | IO$M_NOFILTR | IO$M_TIMED | IO$M_TRMNOECHO,
&iosb, 0, 0, buf, 1, 1, term, 0, 0);
if (status != SS$_NORMAL) {
fprintf (stderr, "_tmxr_serial_line_poll() - QIO Failed, Status=%d\r\n", status);
abort();