[PATCH v2 23/25] Removed unnecessary include.

Alejandro Colomar alx.manpages at gmail.com
Mon Jun 20 07:11:06 UTC 2022


Some OSes, as Linux, provide FIONBIO in <sys/ioctl.h>.  Others,
such as the BSDs and Illumos, provide it in <sys/filio.h>, but
they all include that header from <sys/ioctl.h>, so for this test,
we can simplify and just include <sys/ioctl.h>.
---
 auto/sockets | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/auto/sockets b/auto/sockets
index e6ef326d..e344a3db 100644
--- a/auto/sockets
+++ b/auto/sockets
@@ -225,12 +225,6 @@ nxt_feature_test="#include <sys/filio.h>
                   }"
 . auto/feature
 
-if [ $nxt_found = yes ]; then
-    NXT_SYS_FILIO_H="#include <sys/filio.h>"
-else
-    NXT_SYS_FILIO_H=
-fi
-
 
 nxt_feature="ioctl(FIONBIO)"
 nxt_feature_name=NXT_HAVE_FIONBIO
@@ -239,7 +233,6 @@ nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <unistd.h>
                   #include <sys/socket.h>
-                  $NXT_SYS_FILIO_H
                   #include <sys/ioctl.h>
 
                   int main() {
-- 
2.36.1



More information about the unit mailing list