[Bug 772451] Broken clock_gettime and mkostemp detection with XCode 8
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Mon Oct 24 15:24:51 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=772451
--- Comment #15 from Nirbheek Chauhan <nirbheek.chauhan at gmail.com> ---
That's when you use the prototype provided by <time.h>. The following is the
test that Autoconf uses (for various reasons; primarily to avoid having to need
the header while doing libc symbol checks):
#define clock_gettime disabled_clock_gettime
#include <time.h>
#undef clock_gettime
char clock_gettime ();
int main() {
return clock_gettime();
}
gcc -mmacosx-version-min=10.8 -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
test.c
The guards around the time.h include are for removing the definition completely
(as found in the Autoconf check). You can reproduce this even if you remove the
first three lines.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list