diff options
author | Mikhail Gusarov <dottedmag@dottedmag.net> | 2010-04-14 03:03:27 +0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-04-13 20:17:25 -0700 |
commit | c0f6753d2de16826300a04232e54fbd3aa54c406 (patch) | |
tree | 71d7218baab85b9829605342cd79dde6e044d7f2 /xinit.c | |
parent | 15cf3d560ab5b6847d8891208080ac964c1682fb (diff) |
Use signals from Unix98 and drop pre-POSIX compatibility
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xinit.c')
-rw-r--r-- | xinit.c | 21 |
1 files changed, 2 insertions, 19 deletions
@@ -35,20 +35,7 @@ in this Software without prior written authorization from The Open Group. #include <ctype.h> #include <stdint.h> -#ifdef X_POSIX_C_SOURCE -#define _POSIX_C_SOURCE X_POSIX_C_SOURCE #include <signal.h> -#undef _POSIX_C_SOURCE -#else -#if defined(X_NOT_POSIX) || defined(_POSIX_SOURCE) -#include <signal.h> -#else -#define _POSIX_SOURCE -#include <signal.h> -#undef _POSIX_SOURCE -#endif -#endif - #include <sys/wait.h> #include <errno.h> #include <setjmp.h> @@ -125,18 +112,14 @@ static void set_environment(void); static void Fatal(char *msg); static void Error(char *fmt, ...); -#ifdef RETSIGTYPE /* autoconf AC_TYPE_SIGNAL */ -# define SIGVAL RETSIGTYPE -#endif /* RETSIGTYPE */ - -static SIGVAL +static void sigCatch(int sig) { /* On system with POSIX signals, just interrupt the system call */ gotSignal = sig; } -static SIGVAL +static void sigIgnore(int sig) { } |