From 387795c20413dc5370e9c70209f93c0b80c41eb3 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Mon, 19 Aug 2024 17:25:43 +0200 Subject: [PATCH] Fix POSIX header paths The sys/{fcntl,poll,signal}.h paths are historic and should not be used, except perhaps in pre-POSIX.1-2001 systems. --- configure.ac | 2 +- daemon/serve.cpp | 6 +++--- daemon/workit.cpp | 2 +- scheduler/scheduler.cpp | 2 +- services/util.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index ec9374734..c1d41ecf1 100644 --- a/configure.ac +++ b/configure.ac @@ -122,7 +122,7 @@ AM_CONDITIONAL([WITH_ICECREAM_MAN], [test "x$build_man" != "xno"]) # Some of these are needed by popt (or other libraries included in the future). -AC_CHECK_HEADERS([sys/signal.h ifaddrs.h kinfo.h sys/param.h devstat.h]) +AC_CHECK_HEADERS([signal.h ifaddrs.h kinfo.h sys/param.h devstat.h]) AC_CHECK_HEADERS([sys/socketvar.h sys/vfs.h]) AC_CHECK_HEADERS([mach/host_info.h]) AC_CHECK_HEADERS([arpa/nameser.h], [], [], diff --git a/daemon/serve.cpp b/daemon/serve.cpp index 7cbb93930..acbad19f5 100644 --- a/daemon/serve.cpp +++ b/daemon/serve.cpp @@ -36,9 +36,9 @@ #include #include #include -#ifdef HAVE_SYS_SIGNAL_H -# include -#endif /* HAVE_SYS_SIGNAL_H */ +#ifdef HAVE_SIGNAL_H +# include +#endif /* HAVE_SIGNAL_H */ #include #include diff --git a/daemon/workit.cpp b/daemon/workit.cpp index 4e35120ff..4e36af830 100644 --- a/daemon/workit.cpp +++ b/daemon/workit.cpp @@ -39,7 +39,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/scheduler/scheduler.cpp b/scheduler/scheduler.cpp index 45ec28200..3c130e19a 100644 --- a/scheduler/scheduler.cpp +++ b/scheduler/scheduler.cpp @@ -32,7 +32,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/services/util.h b/services/util.h index 4a7757c58..02f7430ee 100644 --- a/services/util.h +++ b/services/util.h @@ -22,7 +22,7 @@ #define ICECREAM_UTIL_H #include -#include +#include #include #include