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@xxxxxxxxxx> --- include/libmnl/libmnl.h | 1 + 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> -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html