summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2015-05-02 21:51:01 +0200
committerFlorian Westphal <fw@strlen.de>2015-05-02 21:53:47 +0200
commit043e52bc42021f71b85229f6d78bf7e75b282765 (patch)
treec463f592fe82f20bb1651747cead1de172732d8a
parentab8c7d82f7848d318e472a3d809ec7dab969bd04 (diff)
consistently use <errno.h>
On glibc, <sys/errno.h> is a synomym for <errno.h>. <errno.h> is specified by POSIX, so use that. Fixes compilation error with musl libc Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--iptables/ip6tables-restore.c2
-rw-r--r--iptables/ip6tables-save.c2
-rw-r--r--iptables/iptables-restore.c2
-rw-r--r--iptables/iptables-save.c2
-rw-r--r--iptables/iptables-xml.c2
-rw-r--r--iptables/xtables-restore.c2
-rw-r--r--iptables/xtables-save.c2
7 files changed, 7 insertions, 7 deletions
diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c
index 0f4dd97a..93939247 100644
--- a/iptables/ip6tables-restore.c
+++ b/iptables/ip6tables-restore.c
@@ -9,7 +9,7 @@
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
diff --git a/iptables/ip6tables-save.c b/iptables/ip6tables-save.c
index 56e5afb3..f35e921e 100644
--- a/iptables/ip6tables-save.c
+++ b/iptables/ip6tables-save.c
@@ -6,7 +6,7 @@
* This code is distributed under the terms of GNU GPL v2
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
diff --git a/iptables/iptables-restore.c b/iptables/iptables-restore.c
index 261822dd..638b1714 100644
--- a/iptables/iptables-restore.c
+++ b/iptables/iptables-restore.c
@@ -6,7 +6,7 @@
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
diff --git a/iptables/iptables-save.c b/iptables/iptables-save.c
index bcf88ae1..238f368e 100644
--- a/iptables/iptables-save.c
+++ b/iptables/iptables-save.c
@@ -6,7 +6,7 @@
*
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
diff --git a/iptables/iptables-xml.c b/iptables/iptables-xml.c
index c7615abb..74614127 100644
--- a/iptables/iptables-xml.c
+++ b/iptables/iptables-xml.c
@@ -7,7 +7,7 @@
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
diff --git a/iptables/xtables-restore.c b/iptables/xtables-restore.c
index 3cb095fe..8808ee99 100644
--- a/iptables/xtables-restore.c
+++ b/iptables/xtables-restore.c
@@ -6,7 +6,7 @@
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <stdio.h>
diff --git a/iptables/xtables-save.c b/iptables/xtables-save.c
index d51cdcf7..6b33bed0 100644
--- a/iptables/xtables-save.c
+++ b/iptables/xtables-save.c
@@ -7,7 +7,7 @@
*
*/
#include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>