]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
consistently use <errno.h>
authorFelix Janda <felix.janda@posteo.de>
Sat, 2 May 2015 19:51:01 +0000 (21:51 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 2 May 2015 19:53:47 +0000 (21:53 +0200)
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>
iptables/ip6tables-restore.c
iptables/ip6tables-save.c
iptables/iptables-restore.c
iptables/iptables-save.c
iptables/iptables-xml.c
iptables/xtables-restore.c
iptables/xtables-save.c

index 0f4dd97a2ac1543a8db56a2f75ac9b166bdd9080..93939247a115da59a4615ae42fd25ac9c7729ded 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 #include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <stdbool.h>
 #include <string.h>
 #include <stdio.h>
index 56e5afb38758e42d34b90526bbe2b4fd1431b858..f35e921ebcff99ef2285a7fa189f15e1738d1128 100644 (file)
@@ -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>
index 261822ddee3d1c59f0dfbb91ddc15b722222a859..638b171410de30b5d2eeefdda1541533332be1e9 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <stdbool.h>
 #include <string.h>
 #include <stdio.h>
index bcf88ae1ab1f18c05da6ec27049dc99bf84685ec..238f368ed29063c3804664839f3d0dff37bb1815 100644 (file)
@@ -6,7 +6,7 @@
  *
  */
 #include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <stdlib.h>
index c7615abbcff220c379810930e78ab916d4c57745..746141273f1afcf7d0ebe3902697804fc787b0c6 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>
index 3cb095fe8bf4cc5305cd481e1d6c48aa735a54fc..8808ee9933aef0da146b9e0f82ebfb40d59ed8ad 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <stdbool.h>
 #include <string.h>
 #include <stdio.h>
index d51cdcf7d781e87960ec80df9d3f4b319f180728..6b33bed0f68415151b46697d936964ca6f3c204c 100644 (file)
@@ -7,7 +7,7 @@
  *
  */
 #include <getopt.h>
-#include <sys/errno.h>
+#include <errno.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <stdlib.h>