OSDN Git Service

btsnoop: _GNU_SOURCE is needed for O_CLOEXEC on some systems
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 28 Nov 2012 14:36:08 +0000 (16:36 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 28 Nov 2012 14:36:08 +0000 (16:36 +0200)
tools/btsnoop.c

index dcb4a26..0a01adf 100644 (file)
@@ -26,6 +26,7 @@
 #include <config.h>
 #endif
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <errno.h>
 #include <fcntl.h>