summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-06-19 16:55:14 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-18 19:09:30 +0200
commit0d15cbd5b6136d8a92a23895bd83eb322aa633ea (patch)
treef6ea2a19799530807438a5e8b7c68e15d0c05924
parentc8d9106a0d3217c385f6afe572d904d9d77b8c8b (diff)
downloadunit-0d15cbd5b6136d8a92a23895bd83eb322aa633ea.tar.gz
unit-0d15cbd5b6136d8a92a23895bd83eb322aa633ea.tar.bz2
Removed unnecessary include.
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>.
Diffstat (limited to '')
-rw-r--r--auto/sockets7
1 files changed, 0 insertions, 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() {