diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 9f8585b3c43..b6d87714820 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -312,6 +312,9 @@ init_baud_rate () | |||
| 312 | ospeed = 0; | 312 | ospeed = 0; |
| 313 | else | 313 | else |
| 314 | { | 314 | { |
| 315 | #ifdef INIT_BAUD_RATE | ||
| 316 | INIT_BAUD_RATE (); | ||
| 317 | #else | ||
| 315 | #ifdef DOS_NT | 318 | #ifdef DOS_NT |
| 316 | ospeed = 15; | 319 | ospeed = 15; |
| 317 | #else /* not DOS_NT */ | 320 | #else /* not DOS_NT */ |
| @@ -355,6 +358,7 @@ init_baud_rate () | |||
| 355 | #endif /* not HAVE_TERMIOS */ | 358 | #endif /* not HAVE_TERMIOS */ |
| 356 | #endif /* not VMS */ | 359 | #endif /* not VMS */ |
| 357 | #endif /* not DOS_NT */ | 360 | #endif /* not DOS_NT */ |
| 361 | #endif /* not INIT_BAUD_RATE */ | ||
| 358 | } | 362 | } |
| 359 | 363 | ||
| 360 | baud_rate = (ospeed < sizeof baud_convert / sizeof baud_convert[0] | 364 | baud_rate = (ospeed < sizeof baud_convert / sizeof baud_convert[0] |
| @@ -2663,11 +2667,6 @@ init_signals () | |||
| 2663 | signal_handler_t | 2667 | signal_handler_t |
| 2664 | sys_signal (int signal_number, signal_handler_t action) | 2668 | sys_signal (int signal_number, signal_handler_t action) |
| 2665 | { | 2669 | { |
| 2666 | #ifdef DGUX | ||
| 2667 | /* This gets us restartable system calls for efficiency. | ||
| 2668 | The "else" code will works as well. */ | ||
| 2669 | return (berk_signal (signal_number, action)); | ||
| 2670 | #else | ||
| 2671 | sigemptyset (&new_action.sa_mask); | 2670 | sigemptyset (&new_action.sa_mask); |
| 2672 | new_action.sa_handler = action; | 2671 | new_action.sa_handler = action; |
| 2673 | #ifdef SA_RESTART | 2672 | #ifdef SA_RESTART |
| @@ -2680,7 +2679,6 @@ sys_signal (int signal_number, signal_handler_t action) | |||
| 2680 | #endif | 2679 | #endif |
| 2681 | sigaction (signal_number, &new_action, &old_action); | 2680 | sigaction (signal_number, &new_action, &old_action); |
| 2682 | return (old_action.sa_handler); | 2681 | return (old_action.sa_handler); |
| 2683 | #endif /* DGUX */ | ||
| 2684 | } | 2682 | } |
| 2685 | 2683 | ||
| 2686 | #ifndef __GNUC__ | 2684 | #ifndef __GNUC__ |