mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Don't use <sys/signal.h>
This legacy header appears to be unused. Removing its includes avoids numerous warnings when compiling with musl libc: /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp]
This commit is contained in:
parent
0420ce5cc9
commit
bfb4733f39
@ -198,7 +198,6 @@ AC_CHECK_HEADERS(sys/fmutex.h)
|
|||||||
AC_CHECK_HEADERS(sys/ioctl.h sys/sockio.h)
|
AC_CHECK_HEADERS(sys/ioctl.h sys/sockio.h)
|
||||||
AC_CHECK_HEADERS(sys/resource.h)
|
AC_CHECK_HEADERS(sys/resource.h)
|
||||||
AC_CHECK_HEADERS(sys/select.h)
|
AC_CHECK_HEADERS(sys/select.h)
|
||||||
AC_CHECK_HEADERS(sys/signal.h)
|
|
||||||
AC_CHECK_HEADERS(sys/socket.h)
|
AC_CHECK_HEADERS(sys/socket.h)
|
||||||
AC_CHECK_HEADERS(sys/time.h)
|
AC_CHECK_HEADERS(sys/time.h)
|
||||||
AC_CHECK_HEADERS(sys/utsname.h)
|
AC_CHECK_HEADERS(sys/utsname.h)
|
||||||
|
@ -7,9 +7,6 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h> /* FreeBSD FD_ZERO() macro calls bzero() */
|
#include <string.h> /* FreeBSD FD_ZERO() macro calls bzero() */
|
||||||
#ifdef HAVE_SYS_SIGNAL_H
|
|
||||||
#include <sys/signal.h>
|
|
||||||
#endif
|
|
||||||
#ifdef __GNU__ /* For GNU Hurd bug workaround in set_handlers() */
|
#ifdef __GNU__ /* For GNU Hurd bug workaround in set_handlers() */
|
||||||
#include <sys/stat.h> /* OS/2 needs this after sys/types.h */
|
#include <sys/stat.h> /* OS/2 needs this after sys/types.h */
|
||||||
#endif
|
#endif
|
||||||
|
@ -7,18 +7,10 @@
|
|||||||
#include <limits.h> /* may contain PIPE_BUF definition on some systems */
|
#include <limits.h> /* may contain PIPE_BUF definition on some systems */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SIGNAL_H
|
|
||||||
#include <sys/signal.h> /* may contain SA_RESTART */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HAVE_STDDEF_H
|
#ifdef HAVE_STDDEF_H
|
||||||
#include <stddef.h> /* may contain offsetof() */
|
#include <stddef.h> /* may contain offsetof() */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SA_RESTART
|
|
||||||
#define SA_RESTART 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef PIPE_BUF
|
#ifndef PIPE_BUF
|
||||||
#define PIPE_BUF 512 /* POSIX says that. -- Mikulas */
|
#define PIPE_BUF 512 /* POSIX says that. -- Mikulas */
|
||||||
#endif
|
#endif
|
||||||
|
@ -15,9 +15,6 @@
|
|||||||
#ifdef HAVE_SYS_IOCTL_H
|
#ifdef HAVE_SYS_IOCTL_H
|
||||||
#include <sys/ioctl.h>
|
#include <sys/ioctl.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_SIGNAL_H
|
|
||||||
#include <sys/signal.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
#include <sys/socket.h> /* Need to be after sys/types.h */
|
#include <sys/socket.h> /* Need to be after sys/types.h */
|
||||||
|
@ -8,9 +8,6 @@
|
|||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#ifdef HAVE_SYS_SIGNAL_H
|
|
||||||
#include <sys/signal.h>
|
|
||||||
#endif
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef HAVE_SYS_WAIT_H
|
#ifdef HAVE_SYS_WAIT_H
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
@ -8,9 +8,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h> /* NetBSD flavour */
|
#include <sys/types.h> /* NetBSD flavour */
|
||||||
#ifdef HAVE_SYS_SIGNAL_H
|
|
||||||
#include <sys/signal.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_FCNTL_H
|
#ifdef HAVE_FCNTL_H
|
||||||
#include <fcntl.h> /* OS/2 needs this after sys/types.h */
|
#include <fcntl.h> /* OS/2 needs this after sys/types.h */
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user