All of lore.kernel.org
 help / color / mirror / Atom feed
* [iptables PATCH 1/2] Consistently use <errno.h>
@ 2015-05-02 19:51 Felix Janda
  2015-05-02 19:56 ` Florian Westphal
  0 siblings, 1 reply; 3+ messages in thread
From: Felix Janda @ 2015-05-02 19:51 UTC (permalink / raw)
  To: netfilter-devel

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
---
 iptables/ip6tables-restore.c | 2 +-
 iptables/ip6tables-save.c    | 2 +-
 iptables/iptables-restore.c  | 2 +-
 iptables/iptables-save.c     | 2 +-
 iptables/iptables-xml.c      | 2 +-
 iptables/xtables-restore.c   | 2 +-
 iptables/xtables-save.c      | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c
index 0f4dd97..9393924 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 56e5afb..f35e921 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 261822d..638b171 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 bcf88ae..238f368 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 c7615ab..7461412 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 3cb095f..8808ee9 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 d51cdcf..6b33bed 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>
-- 
2.3.6

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [iptables PATCH 1/2] Consistently use <errno.h>
  2015-05-02 19:51 [iptables PATCH 1/2] Consistently use <errno.h> Felix Janda
@ 2015-05-02 19:56 ` Florian Westphal
  2015-05-02 20:50   ` Felix Janda
  0 siblings, 1 reply; 3+ messages in thread
From: Florian Westphal @ 2015-05-02 19:56 UTC (permalink / raw)
  To: Felix Janda; +Cc: netfilter-devel

Felix Janda <felix.janda@posteo.de> wrote:
> 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

Applied, in future patches please also add a "Signed-off-by" line.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [iptables PATCH 1/2] Consistently use <errno.h>
  2015-05-02 19:56 ` Florian Westphal
@ 2015-05-02 20:50   ` Felix Janda
  0 siblings, 0 replies; 3+ messages in thread
From: Felix Janda @ 2015-05-02 20:50 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netfilter-devel

Florian Westphal wrote:
> Felix Janda <felix.janda@posteo.de> wrote:
> > 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
> 
> Applied, in future patches please also add a "Signed-off-by" line.

Sorry for the missing Signed-off-by.

Thanks for applying,
Felix

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-05-02 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 19:51 [iptables PATCH 1/2] Consistently use <errno.h> Felix Janda
2015-05-02 19:56 ` Florian Westphal
2015-05-02 20:50   ` Felix Janda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.