From fe28bc4657b22102d1ce35837553846b8026e8a0 Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Thu, 24 Dec 2015 18:04:35 +0100 Subject: Simplify signal handling for BSD --- include/dm.h | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'include/dm.h') 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 # include -# if defined(X_POSIX_C_SOURCE) -# define _POSIX_C_SOURCE X_POSIX_C_SOURCE -# include -# include -# undef _POSIX_C_SOURCE -# else -# include -# include -# endif +# include +# include # include # 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_ */ -- cgit v1.2.3