Re: Updated fsx.c program (fixed fallocate)

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

 



Mingming wrote:
> > I think that
> > 
> > #define _GNU_SOURCE
> > 
> > will pull in the glibc headers' definition rather than doing our own....
> > 
> 
> Oh? that's sounds good...
> 
> I tried to replace above with 
> #define _GNU_SOURCE	1
> 
> gcc complained O_DIRECT is still not defined. what did I missing?
> 


,----
| #define _GNU_SOURCE 1
| 
| #include <fcntl.h>
`----

should do it.

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

[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux