[PATCH] fix missing include directives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



on glibc, those are erroneously (namespace pollution) pulled in via other headers. this doesn't work with conformant libcs (musl libc in this case), we simply need to include all needed headers.

Signed-Off-By: John Spencer <maillist-lvm@barfooze.de>
--- a/libdm/mm/pool-fast.c	2012-11-24 19:05:17.413015858 +0100
+++ b/libdm/mm/pool-fast.c	2012-11-24 19:05:56.589926540 +0100
@@ -18,6 +18,7 @@
 #endif
 
 #include "dmlib.h"
+#include <stddef.h>
 #include <malloc.h>
 
 struct chunk {
--- a/daemons/dmeventd/dmeventd.c	2012-11-24 19:08:48.981918074 +0100
+++ b/daemons/dmeventd/dmeventd.c	2012-11-24 19:09:25.822750433 +0100
@@ -37,6 +37,7 @@
 #include <unistd.h>
 #include <signal.h>
 #include <arpa/inet.h>		/* for htonl, ntohl */
+#include <fcntl.h>
 
 #ifdef linux
 /*
--- a/scripts/lvm2_activation_generator_systemd_red_hat.c	2012-11-24 20:06:19.481792514 +0100
+++ b/scripts/lvm2_activation_generator_systemd_red_hat.c	2012-11-24 20:06:56.774634314 +0100
@@ -19,6 +19,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
+#include <limits.h>		/* for PATH_MAX */
 #include "lvm2app.h"
 
 #define KMSG_DEV_PATH        "/dev/kmsg"
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux