From c0f6753d2de16826300a04232e54fbd3aa54c406 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Wed, 14 Apr 2010 03:03:27 +0700 Subject: Use signals from Unix98 and drop pre-POSIX compatibility Signed-off-by: Mikhail Gusarov Signed-off-by: Alan Coopersmith --- configure.ac | 2 -- xinit.c | 21 ++------------------- 2 files changed, 2 insertions(+), 21 deletions(-) diff --git a/configure.ac b/configure.ac index 0ead99d..8930b39 100644 --- a/configure.ac +++ b/configure.ac @@ -40,8 +40,6 @@ AC_PROG_INSTALL AC_PATH_PROG(SED,sed) AC_CANONICAL_HOST -AC_TYPE_SIGNAL - m4_ifdef([AS_HELP_STRING], , [m4_define([AS_HELP_STRING], m4_defn([AC_HELP_STRING]))]) diff --git a/xinit.c b/xinit.c index eaf4da1..13960dd 100644 --- a/xinit.c +++ b/xinit.c @@ -35,20 +35,7 @@ in this Software without prior written authorization from The Open Group. #include #include -#ifdef X_POSIX_C_SOURCE -#define _POSIX_C_SOURCE X_POSIX_C_SOURCE #include -#undef _POSIX_C_SOURCE -#else -#if defined(X_NOT_POSIX) || defined(_POSIX_SOURCE) -#include -#else -#define _POSIX_SOURCE -#include -#undef _POSIX_SOURCE -#endif -#endif - #include #include #include @@ -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) { } -- cgit v1.2.3