diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-17 14:13:14 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-02-17 14:13:14 -0800 |
commit | 1c7a3d9a12b825e4d96bfdded86f233404970261 (patch) | |
tree | abfee52b48950606c2608d3e1f19a5b09e64d9e0 | |
parent | 71a8ea3d874084d24840b8869f0475146ad8a414 (diff) |
unifdef SYSV
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | choose.c | 4 | ||||
-rw-r--r-- | signals.c | 10 |
2 files changed, 1 insertions, 13 deletions
@@ -39,15 +39,11 @@ in this Software without prior written authorization from The Open Group. #ifndef X_NOT_POSIX #include <dirent.h> #else -#ifdef SYSV -#include <dirent.h> -#else #include <sys/dir.h> #ifndef dirent #define dirent direct #endif #endif -#endif static Pixel save_message_foreground; static Pixel save_message_background; @@ -61,14 +61,10 @@ in this Software without prior written authorization from The Open Group. #define USE_POSIX_WAIT #endif -#if defined(linux) || defined(SYSV) +#ifdef linux #define USE_SYSV_SIGNALS #endif -#if defined(X_NOT_POSIX) && defined(SYSV) -#define SIGNALS_RESET_WHEN_CAUGHT -#endif - #include <stddef.h> #include "xsm.h" @@ -101,10 +97,6 @@ sig_child_handler (int sig) wait (NULL); #endif -#ifdef SIGNALS_RESET_WHEN_CAUGHT - Signal (SIGCHLD, sig_child_handler); -#endif - /* * The wait() above must come before re-establishing the signal handler. * In between this time, a new child might have died. If we can do |