[alsa-devel] [PATCH alsa-lib 3/3] Define _GNU_SOURCE so that <fcntl.h> gives O_CLOEXEC

Rémi Denis-Courmont remi at basile.remlab.net
Thu Oct 22 16:49:17 CEST 2009


This enables thread-safe close-on-exec file descriptor flag setting if
the underlying kernel supports it.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
---
 configure.in |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/configure.in b/configure.in
index a455de1..cc8950f 100644
--- a/configure.in
+++ b/configure.in
@@ -38,6 +38,8 @@ then
   AC_MSG_RESULT($CC)
 fi
 	    
+CFLAGS="$CFLAGS -D_GNU_SOURCE"
+
 
 AC_PROG_CC
 AC_PROG_CPP
-- 
1.6.5



More information about the Alsa-devel mailing list