Skip to content

Commit 9ea7100

Browse files
committed
Fix -Wcpp in isc_ipc / inet_server (posix)
(warning redirecting incorrect #include <sys/signal.h> to <signal.h>)
1 parent 6271e0e commit 9ea7100

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/common/os/posix/isc_ipc.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@
6464
#include <signal.h>
6565
#endif
6666

67-
#ifdef HAVE_SYS_SIGNAL_H
67+
#if defined(HAVE_SIGNAL_H)
68+
#include <signal.h>
69+
#elif defined(HAVE_SYS_SIGNAL_H)
6870
#include <sys/signal.h>
6971
#endif
7072

src/remote/server/os/posix/inet_server.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@
9696
#include "../auth/trusted/AuthSspi.h"
9797
#include "../auth/SecureRemotePassword/server/SrpServer.h"
9898

99-
#ifdef HAVE_SYS_SIGNAL_H
100-
#include <sys/signal.h>
101-
#else
99+
#if defined(HAVE_SIGNAL_H)
102100
#include <signal.h>
101+
#elif defined(HAVE_SYS_SIGNAL_H)
102+
#include <sys/signal.h>
103103
#endif
104104

105105
#ifdef HAVE_SYS_RESOURCE_H

0 commit comments

Comments
 (0)