diff --git a/configure.ac b/configure.ac index e078ec0..bdb47a3 100644 --- a/configure.ac +++ b/configure.ac @@ -342,8 +342,8 @@ AC_COMPILE_IFELSE( AC_MSG_RESULT([yes, supported without any options])], [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( - [#define _GNU_SOURCE], - [#include ], + [#define _GNU_SOURCE + #include ], [pthread_rwlock_t *x;])], [AC_DEFINE([UPNP_USE_RWLOCK], [1], [Use pthread_rwlock_t]) CFLAGS="$CFLAGS -D_GNU_SOURCE"