[Drbd-dev] Compile fix for 0.8
Lars Marowsky-Bree
lmb at suse.de
Mon Feb 21 17:01:46 CET 2005
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 <lmb at suse.de>
--
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business
-------------- next part --------------
Index: user/drbdmeta.c
===================================================================
--- user/drbdmeta.c (revision 1763)
+++ user/drbdmeta.c (working copy)
@@ -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"
More information about the drbd-dev
mailing list