[libdispatch-dev] [PATCH] testing/dispatch_test.c
Mario Schwalbe
schwalbe at inf.tu-dresden.de
Tue Nov 17 05:31:00 PST 2009
Hi,
Robert Watson schrieb:
> On Mon, 16 Nov 2009, Mario Schwalbe wrote:
>> to get a prototype for apsintf in order to compile
>> testing/dispatch_test.c on Linux.
> While I've never used it, configure appears to have a macro,
> AC_USE_SYSTEM_EXTENSIONS, one of which is _GNU_SOURCE. Could you
> investigate using this, or some similar configure-time decision about
> defining _GNU_SOURCE and possibly extra includes like libio.h.
You're right. AC_USE_SYSTEM_EXTENSIONS seems to work as well.
ciao,
Mario
Index: configure.ac
===================================================================
--- configure.ac (Revision 166)
+++ configure.ac (Arbeitskopie)
@@ -110,6 +110,7 @@
[Define to use non-portablesemaphore optimizations for Mac OS X])]
)
+AC_USE_SYSTEM_EXTENSIONS
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
More information about the libdispatch-dev
mailing list