summaryrefslogtreecommitdiff
path: root/include/dm.h
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@herrb.eu>2015-12-24 18:04:35 +0100
committerMatthieu Herrb <matthieu@herrb.eu>2015-12-24 18:04:35 +0100
commitfe28bc4657b22102d1ce35837553846b8026e8a0 (patch)
tree8d62596afed8feef859a207569cc0ed3b0e70ce4 /include/dm.h
parent7c0ba5fbc7512167e650bf2ab87914c3a318ca30 (diff)
Simplify signal handling for BSD
Diffstat (limited to 'include/dm.h')
-rw-r--r--include/dm.h23
1 files changed, 3 insertions, 20 deletions
diff --git a/include/dm.h b/include/dm.h
index e038e08..85cd07c 100644
--- a/include/dm.h
+++ b/include/dm.h
@@ -49,15 +49,8 @@ from The Open Group.
# include <X11/Xauth.h>
# include <X11/Intrinsic.h>
-# if defined(X_POSIX_C_SOURCE)
-# define _POSIX_C_SOURCE X_POSIX_C_SOURCE
-# include <setjmp.h>
-# include <limits.h>
-# undef _POSIX_C_SOURCE
-# else
-# include <setjmp.h>
-# include <limits.h>
-# endif
+# include <setjmp.h>
+# include <limits.h>
# include <time.h>
# define Time_t time_t
@@ -382,22 +375,12 @@ extern void WaitForChild (void);
# define SIGVAL RETSIGTYPE
-# if defined(X_NOT_POSIX) || defined(__UNIXOS2__) || defined(__NetBSD__) && defined(__sparc__)
-# if defined(SYSV) || defined(__UNIXOS2__)
-# define SIGNALS_RESET_WHEN_CAUGHT
-# define UNRELIABLE_SIGNALS
-# endif
-# define Setjmp(e) setjmp(e)
-# define Longjmp(e,v) longjmp(e,v)
-# define Jmp_buf jmp_buf
-# else
# define Setjmp(e) sigsetjmp(e,1)
# define Longjmp(e,v) siglongjmp(e,v)
# define Jmp_buf sigjmp_buf
-# endif
+
typedef SIGVAL (*SIGFUNC)(int);
-SIGVAL (*Signal(int, SIGFUNC Handler))(int);
#endif /* _DM_H_ */