Cleanup for build on VMS
This commit is contained in:
parent
c45a377c71
commit
de483074e6
4 changed files with 14 additions and 8 deletions
|
@ -1732,8 +1732,8 @@ if (status != SS$_NORMAL) {
|
||||||
}
|
}
|
||||||
if (devsts & UCB$M_BSY)
|
if (devsts & UCB$M_BSY)
|
||||||
return 0; /* Would block */
|
return 0; /* Would block */
|
||||||
status = sys$qio (0, port, IO$_WRITELBLK | IO$M_NOFORMAT,
|
status = sys$qiow (0, port, IO$_WRITELBLK | IO$M_NOFORMAT,
|
||||||
NULL, 0, 0, buffer, count, 0, 0, 0, 0);
|
NULL, 0, 0, buffer, count, 0, 0, 0, 0);
|
||||||
if (status != SS$_NORMAL) {
|
if (status != SS$_NORMAL) {
|
||||||
sim_error_serial ("write", status); /* report unexpected error */
|
sim_error_serial ("write", status); /* report unexpected error */
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -75,6 +75,12 @@
|
||||||
#if !defined (timerclear)
|
#if !defined (timerclear)
|
||||||
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
|
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined (AI_NUMERICHOST)
|
||||||
|
#define AI_NUMERICHOST 0
|
||||||
|
#endif
|
||||||
|
#if defined (__VAX)
|
||||||
|
#define sockaddr_storage sockaddr
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#if defined(__EMX__) /* OS/2 unique */
|
#if defined(__EMX__) /* OS/2 unique */
|
||||||
#if !defined (timerclear)
|
#if !defined (timerclear)
|
||||||
|
|
|
@ -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 */
|
/* 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)
|
if (host_tick_ms)
|
||||||
*hoat_tick_ms = sim_os_sleep_min_ms;
|
*host_tick_ms = sim_os_sleep_min_ms;
|
||||||
return sim_idle_rate_ms;
|
return sim_idle_rate_ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2340,9 +2340,9 @@ while (sim_asynch_enabled) {
|
||||||
lp->a_active = TRUE;
|
lp->a_active = TRUE;
|
||||||
pthread_mutex_unlock (&sim_tmxr_poll_lock);
|
pthread_mutex_unlock (&sim_tmxr_poll_lock);
|
||||||
term[0] = term[1] = 0;
|
term[0] = term[1] = 0;
|
||||||
status = sys$qio (0, lp->serport,
|
status = sys$qiow (0, lp->serport,
|
||||||
IO$_READLBLK | IO$M_NOECHO | IO$M_NOFILTR | IO$M_TIMED | IO$M_TRMNOECHO,
|
IO$_READLBLK | IO$M_NOECHO | IO$M_NOFILTR | IO$M_TIMED | IO$M_TRMNOECHO,
|
||||||
&iosb, 0, 0, buf, 1, 1, term, 0, 0);
|
&iosb, 0, 0, buf, 1, 1, term, 0, 0);
|
||||||
if (status != SS$_NORMAL) {
|
if (status != SS$_NORMAL) {
|
||||||
fprintf (stderr, "_tmxr_serial_line_poll() - QIO Failed, Status=%d\r\n", status);
|
fprintf (stderr, "_tmxr_serial_line_poll() - QIO Failed, Status=%d\r\n", status);
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Add table
Reference in a new issue