Btrgs-progs: Define _GNU_SOURCE for strndup
diff mbox

Message ID 1277744116-7805-1-git-send-regression-fweisbec@gmail.com
State New, archived
Headers show

Commit Message

Frederic Weisbecker June 28, 2010, 4:55 p.m. UTC
None

Patch
diff mbox

diff --git a/btrfs-list.c b/btrfs-list.c
index 7741705..9dedb5d 100644
--- a/btrfs-list.c
+++ b/btrfs-list.c
@@ -16,6 +16,7 @@ 
  * Boston, MA 021110-1307, USA.
  */
 
+#define _GNU_SOURCE
 #ifndef __CHECKER__
 #include <sys/ioctl.h>
 #include <sys/mount.h>
diff --git a/btrfs.c b/btrfs.c
index ab5e57f..672ffe2 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -15,6 +15,7 @@ 
  */
 
 
+#define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>