On Thu, Jul 31, 2014 at 08:25:00AM +0200, Jean-Pierre André wrote:
> Hi,
> 
> Just a minor point...
> 
> Regards
> 
> Jean-Pierre
> 
> Richard W.M. Jones wrote:
> >---
> [...]
> >\
> >diff --git a/libntfs-3g/ioctl.c b/libntfs-3g/ioctl.c
> >new file mode 100644
> >index 0000000..b0ec387
> >--- /dev/null
> >+++ b/libntfs-3g/ioctl.c
> >@@ -0,0 +1,383 @@
> [...]
> >+
> >+#ifdef HAVE_LINUX_FS_H
> >+#include <sys/mount.h>
> 
> You do not need <sys/mount.h> which causes unpleasant
> redefines in <linux/fs.h>

I do with Fedora 20.  Otherwise I get:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I../include/ntfs-3g -g -O2 
-Wall -ggdb3 -DDEBUG -MT libntfs_3g_la-ioctl.lo -MD -MP -MF 
.deps/libntfs_3g_la-ioctl.Tpo -c ioctl.c  -fPIC -DPIC -o 
.libs/libntfs_3g_la-ioctl.o
In file included from ioctl.c:67:0:
/usr/include/sys/mount.h:35:3: error: expected identifier before numeric 
constant
   MS_RDONLY = 1,  /* Mount read-only.  */
   ^
make[2]: *** [libntfs_3g_la-ioctl.lo] Error 1

Is there a problem with including <sys/mount.h>?

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
ntfs-3g-devel mailing list
ntfs-3g-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel

Reply via email to