Skip to content
Permalink
Browse files

Cleanup: sigaction() and sigemptyset() are POSIX.1-2001

 Patch by: michaelortmann

 Cleanup: sigaction() and sigemptyset() are POSIX.1-2001, so old code can be cleaned up.
  • Loading branch information...
michaelortmann authored and vanosg committed Jun 29, 2019
1 parent ccff3b3 commit 92d7d3e5d37274b27027d8b582a45a1f82ba9f4a
Showing with 1 addition and 14 deletions.
  1. +1 −1 configure.ac
  2. +0 −13 src/eggdrop.h
@@ -111,7 +111,7 @@ AX_TYPE_SOCKLEN_T
AX_CREATE_STDINT_H([eggint.h])

# Checks for functions and their arguments.
AC_CHECK_FUNCS([clock dprintf fsync getrandom getrusage inet_aton inet_ntop isascii random rand lrand48 rename setpgid sigaction sigemptyset snprintf strcasecmp strlcpy strncasecmp uname vsnprintf])
AC_CHECK_FUNCS([clock dprintf fsync getrandom getrusage inet_aton inet_ntop isascii random rand lrand48 rename setpgid snprintf strcasecmp strlcpy strncasecmp uname vsnprintf])
AC_FUNC_SELECT_ARGTYPES
EGG_FUNC_VPRINTF
AC_FUNC_MMAP
@@ -257,19 +257,6 @@
#define randint(n) (unsigned long) (random() / (RANDOM_MAX + 1.0) * n)


#ifndef HAVE_SIGACTION /* old "weird signals" */
# define sigaction sigvec
# ifndef sa_handler
# define sa_handler sv_handler
# define sa_mask sv_mask
# define sa_flags sv_flags
# endif
#endif

#ifndef HAVE_SIGEMPTYSET
# define sigemptyset(x) ((*(int *)(x))=0)
#endif

#ifdef TLS
# include <openssl/ssl.h>
#endif

0 comments on commit 92d7d3e

Please sign in to comment.
You can’t perform that action at this time.