Skip to contentSkip to conversation

Compile fix for 0.8

Drbd-dev Lars Marowsky-Bree 1 participant 1 message Feb 21, 2005 DRBD driver

lore
Share & tools
lore
#0 lore raw

The attached patch fixes a minor problem when compiling drbd-0.8:

linux/fs.h pulls in linux/wait.h via some nested includes, in which P_ALL etc are #defines. Later, we try to include sys/wait.h, in which P_ALL etc are enum names, and gcc doesn't like numeric enums.

Fix: simply include correct header.

Sincerely,
Lars Marowsky-Brée <[email protected]>

Signature · 3 lines
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business
drbdmeta.c +1 -1
Index: user/drbdmeta.c
===================================================================
@@ -40,7 +40,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 
-#include <linux/fs.h>		/* for BLKGETSIZE64 */
+#include <sys/mount.h>		/* for BLKGETSIZE64 */
 #include <linux/drbd.h>		/* only use DRBD_MAGIC from here! */
 
 #include "drbdtool_common.h"