Whamcloud - gitweb
build: fix build warnings for MacOS
authorAndreas Dilger <adilger@whamcloud.com>
Fri, 27 Apr 2012 05:22:45 +0000 (23:22 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Aug 2012 06:54:46 +0000 (00:54 -0600)
commitc458296cd47d9b03e6e68303c01c95559cdad3f4
treefe41d2d608cf4cdc5f06e9261c9e3594f6376488
parent6975460925c697030643a3f27a059d59d5400582
build: fix build warnings for MacOS

The BLKFLSBUF and FDFLUSH ioctls are Linux specific, and do not
really have anything to do with __GNUC__ (which is also used on
OS/X and Solaris).  Only print these warnings on Linux systems.

O_DIRECT is not defined in the OS/X headers.  Since this is only a
performance enhancement, and not required for correct operation,
just ignore it if undefined.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
lib/ext2fs/ext2_types.h.in