summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatías Fonzo <selk@dragora.org>2020-01-20 13:04:15 -0300
committerSlávek Banko <slavek.banko@axis.cz>2020-01-23 03:24:59 +0100
commitee113c26fbd5723c863282e8bbadfaf5d86a46b4 (patch)
tree62acbba7a983ba5eaa1247bcc858a5c01ccdcbb9
parentff609e7acaa69902b443b279be05b45e9933123c (diff)
downloadtdelibs-ee113c26fbd5723c863282e8bbadfaf5d86a46b4.tar.gz
tdelibs-ee113c26fbd5723c863282e8bbadfaf5d86a46b4.zip
Redirect some headers noticed by the compiler
/usr/include/sys/poll.h:1:2: warning: #warning redirecting incorrect #include <sys/poll.h> to <poll.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/poll.h> to <poll.h> /usr/include/sys/signal.h:1:2: warning: #warning redirecting incorrect #include <sys/signal.h> to <signal.h> [-Wcpp] 1 | #warning redirecting incorrect #include <sys/signal.h> to <signal.h> Note: <sys/signal.h> has been removed from the tdeio/tdeio/connection.cpp source - it was already declared. Signed-off-by: Matías Fonzo <selk@dragora.org> (cherry picked from commit c2adce2e133c167567df8607a32a420a9825f695)
-rw-r--r--tdecore/network/tdesocketdevice.cpp2
-rw-r--r--tdeio/tdeio/connection.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/tdecore/network/tdesocketdevice.cpp b/tdecore/network/tdesocketdevice.cpp
index e4802bb7c..b97ad0ba0 100644
--- a/tdecore/network/tdesocketdevice.cpp
+++ b/tdecore/network/tdesocketdevice.cpp
@@ -39,7 +39,7 @@
#include <unistd.h>
#ifdef HAVE_POLL
-# include <sys/poll.h>
+# include <poll.h>
#else
# ifdef HAVE_SYS_SELECT
# include <sys/select.h>
diff --git a/tdeio/tdeio/connection.cpp b/tdeio/tdeio/connection.cpp
index fa316f56d..9577ad534 100644
--- a/tdeio/tdeio/connection.cpp
+++ b/tdeio/tdeio/connection.cpp
@@ -27,7 +27,6 @@
#include <tqtimer.h>
#include <sys/types.h>
-#include <sys/signal.h>
#include <sys/time.h>
#include <errno.h>