summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2010-12-20 01:40:31 +0100
committerJan Engelhardt <jengelh@medozas.de>2010-12-20 01:40:48 +0100
commiteb5265f5cc6984f4a671ddbd440f415bf9d67209 (patch)
tree67a251e020622cec7b3285e2116752f75be3402d
parent093044ed01a91541c46ba9cc987fae5e907132b1 (diff)
include: add missing unistd.h
When a project uses MNL_SOCKET_BUFFER_SIZE without having included unistd.h, it gets: mystuff.c:36:2: warning: implicit declaration of function "getpagesize" It is libmnl's job to include this, since mystuff.c did not use getpagesize anywhere. Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
-rw-r--r--include/libmnl/libmnl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h
index 78fd0c4..3e69629 100644
--- a/include/libmnl/libmnl.h
+++ b/include/libmnl/libmnl.h
@@ -9,6 +9,7 @@
# include <stdio.h>
# include <stdint.h>
#endif
+#include <unistd.h>
#include <sys/socket.h> /* for sa_family_t */
#include <linux/netlink.h>