Bug 761962 (GLUSTER-230)

Summary: Bulid fails on Solaris and Mac OS due to Linux specific flags
Product: [Community] GlusterFS Reporter: Shehjar Tikoo <shehjart>
Component: coreAssignee: Shehjar Tikoo <shehjart>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: anush, gluster-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Solaris   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Shehjar Tikoo 2009-08-27 07:07:10 UTC
Build error:
In file included from gf-dirent.c:33:
protocol.h: In function `gf_flags_from_flags':
protocol.h:278: error: `O_ASYNC' undeclared (first use in this function)
protocol.h:278: error: (Each undeclared identifier is reported only once
protocol.h:278: error: for each function it appears in.)
protocol.h:283: error: `O_NOATIME' undeclared (first use in this function)
protocol.h:284: error: `O_CLOEXEC' undeclared (first use in this function)
protocol.h: In function `gf_flags_to_flags':
protocol.h:305: error: `O_ASYNC' undeclared (first use in this function)
protocol.h:310: error: `O_NOATIME' undeclared (first use in this function)
protocol.h:311: error: `O_CLOEXEC' undeclared (first use in this function)

Comment 1 Anand Avati 2009-09-02 14:30:03 UTC
PATCH: http://patches.gluster.com/patch/1173 in master (core: Fix build failure on non-Linux systems)