diff options
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index e23f52d92e5..37e7dfbaf9c 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -90,17 +90,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 90 | #include "msdos.h" | 90 | #include "msdos.h" |
| 91 | #include <sys/param.h> | 91 | #include <sys/param.h> |
| 92 | 92 | ||
| 93 | #if __DJGPP__ > 1 | ||
| 94 | extern int etext; | 93 | extern int etext; |
| 95 | extern unsigned start __asm__ ("start"); | 94 | extern unsigned start __asm__ ("start"); |
| 96 | #endif | 95 | #endif |
| 97 | #endif | ||
| 98 | |||
| 99 | #ifndef USE_CRT_DLL | ||
| 100 | #ifndef errno | ||
| 101 | extern int errno; | ||
| 102 | #endif | ||
| 103 | #endif | ||
| 104 | 96 | ||
| 105 | #include <sys/file.h> | 97 | #include <sys/file.h> |
| 106 | 98 | ||
| @@ -462,13 +454,7 @@ wait_for_termination (pid) | |||
| 462 | #endif /* not POSIX_SIGNALS */ | 454 | #endif /* not POSIX_SIGNALS */ |
| 463 | #endif /* not BSD_SYSTEM, and not HPUX version >= 6 */ | 455 | #endif /* not BSD_SYSTEM, and not HPUX version >= 6 */ |
| 464 | #else /* not subprocesses */ | 456 | #else /* not subprocesses */ |
| 465 | #if __DJGPP__ > 1 | ||
| 466 | break; | 457 | break; |
| 467 | #else /* not __DJGPP__ > 1 */ | ||
| 468 | if (kill (pid, 0) < 0) | ||
| 469 | break; | ||
| 470 | wait (0); | ||
| 471 | #endif /* not __DJGPP__ > 1*/ | ||
| 472 | #endif /* not subprocesses */ | 458 | #endif /* not subprocesses */ |
| 473 | } | 459 | } |
| 474 | } | 460 | } |
| @@ -672,10 +658,8 @@ sys_subshell () | |||
| 672 | 658 | ||
| 673 | #ifdef DOS_NT | 659 | #ifdef DOS_NT |
| 674 | pid = 0; | 660 | pid = 0; |
| 675 | #if __DJGPP__ > 1 | ||
| 676 | save_signal_handlers (saved_handlers); | 661 | save_signal_handlers (saved_handlers); |
| 677 | synch_process_alive = 1; | 662 | synch_process_alive = 1; |
| 678 | #endif /* __DJGPP__ > 1 */ | ||
| 679 | #else | 663 | #else |
| 680 | pid = vfork (); | 664 | pid = vfork (); |
| 681 | if (pid == -1) | 665 | if (pid == -1) |
| @@ -747,7 +731,7 @@ sys_subshell () | |||
| 747 | } | 731 | } |
| 748 | 732 | ||
| 749 | /* Do this now if we did not do it before. */ | 733 | /* Do this now if we did not do it before. */ |
| 750 | #if !defined (MSDOS) || __DJGPP__ == 1 | 734 | #ifndef MSDOS |
| 751 | save_signal_handlers (saved_handlers); | 735 | save_signal_handlers (saved_handlers); |
| 752 | synch_process_alive = 1; | 736 | synch_process_alive = 1; |
| 753 | #endif | 737 | #endif |