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 <andreas.dilger@intel.com>
Wed, 24 Apr 2013 04:48:20 +0000 (22:48 -0600)
commit2d3ae95abaa82dffbc17be9c01469ac4b3d4997c
tree96d14660ca20387c0faa7bf86ef1b3edee18264a
parent9aa7eff0432b4329a86f3967b1c35a9ff2c2cd45
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 <andreas.dilger@intel.com>
lib/ext2fs/ext2_types.h.in