Distributed Replicated Block Device (DRBD) development
 help / color / mirror / Atom feed
* [Drbd-dev] Compile fix for 0.8
@ 2005-02-21 16:01 Lars Marowsky-Bree
  0 siblings, 0 replies; only message in thread
From: Lars Marowsky-Bree @ 2005-02-21 16:01 UTC (permalink / raw)
  To: drbd-dev

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

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@suse.de>

-- 
High Availability & Clustering
SUSE Labs, Research and Development
SUSE LINUX Products GmbH - A Novell Business


[-- Attachment #2: drbd-08 --]
[-- Type: text/plain, Size: 413 bytes --]

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"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-21 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-21 16:01 [Drbd-dev] Compile fix for 0.8 Lars Marowsky-Bree

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox