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>
Sat, 15 Sep 2012 17:32:58 +0000 (11:32 -0600)
commitfd5dbb496236b6d69c8ff177665fd20608cffd11
treef4034de932afb6b5ea648bd3cc04ab935a7c1f2d
parentb19376df3e6ea394d70dc9642210310fdf3d5d57
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