[MacPorts] #29279: policykit build fails -- polkitagenthelperprivate.c uses fdatasync()
MacPorts
noreply at macports.org
Tue Apr 26 06:14:40 PDT 2011
#29279: policykit build fails -- polkitagenthelperprivate.c uses fdatasync()
---------------------------------+------------------------------------------
Reporter: gnwiii@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.9.2
Keywords: policykit fdatasync | Port: policykit
---------------------------------+------------------------------------------
In polkitagenthelperprivate.c there are two calls to fdatasync().
This results in a build failure (unsatfisfied external).
According the linux man page
{{{
On POSIX systems on which fdatasync() is available,
_POSIX_SYNCHRONIZED_IO is defined in <unistd.h> to a
value greater than 0.
}}}
Here, Leopard and Snow Leopard {{{/usr/include/unistd.h}}} as well as the
Developer/SDK versions all have:
{{{
#define _POSIX_SYNCHRONIZED_IO (-1)
}}}
As a workaround, I just edited the file to replace fdatasync with fdata
and the build succeeded. A Google search suggests that some
OS X systems do have fdatasync, but that the headers don't provide a
prototype.
--
Ticket URL: <https://trac.macports.org/ticket/29279>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list