[PATCH] avoid compilation failure on rawhide

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

 



Hi Karel,

Building on rawhide (updated a couple of hours ago), I saw this:

    blkdev.o: In function `blkdev_get_size':
    /h/j/w/co/util-linux-ng/disk-utils/../lib/blkdev.c:144: undefined reference to `S_ISREG'
    collect2: ld returned 1 exit status
    make[2]: *** [mkfs.minix] Error 1

Here's the obvious patch:

>From b3eec2d42c1594f34a9191e2f544c990067d824b Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@xxxxxxxxxx>
Date: Tue, 16 Mar 2010 13:44:39 +0100
Subject: [PATCH] avoid compilation failure on rawhide

* lib/blkdev.c: Include <sys/stat.h>, for use of S_ISREG.
---
 lib/blkdev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/blkdev.c b/lib/blkdev.c
index aa323f2..4b9e6fc 100644
--- a/lib/blkdev.c
+++ b/lib/blkdev.c
@@ -1,5 +1,6 @@

 #include <sys/types.h>
+#include <sys/stat.h>
 #include <sys/ioctl.h>
 #include <unistd.h>

--
1.7.0.1
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux