Skip to contentSkip to conversation

libnfnetlink compile fix

PATCH Applied Thomas Jarosch 2 participants 2 messages Mar 16, 2007 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libnfnetlink compile fix

Hello,

attached patch fixes compilation of libnfnetlink for old glibc versions. Otherwise "struct iovec" is undefined.

Cheers,
Thomas

src/libnfnetlink.c +1 -0
diff -u -r -p libnfnetlink-20070315/src/libnfnetlink.c libnfnetlink.iovec/src/libnfnetlink.c
@@ -45,6 +45,7 @@
 #include <assert.h>
 #include <linux/types.h>
 #include <sys/socket.h>
+#include <sys/uio.h>
 
 #include <linux/netlink.h>
 
src/rtnl.c +1 -0
diff -u -r -p libnfnetlink-20070315/src/rtnl.c libnfnetlink.iovec/src/rtnl.c
@@ -16,6 +16,7 @@
 #include <errno.h>
 #include <time.h>
 #include <sys/types.h>
+#include <sys/uio.h>
 
 #include <netinet/in.h>
 
#1 lore raw
Quoted 4 lines · Thomas Jarosch

Hello,

attached patch fixes compilation of libnfnetlink for old glibc versions. Otherwise "struct iovec" is undefined.

Applied, thanks Thomas.