[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-btrfs
Subject: [PATCH] Btrgs-progs: Define _GNU_SOURCE for strndup
From: Frederic Weisbecker <fweisbec () gmail ! com>
Date: 2010-06-28 16:55:15
Message-ID: 1277744116-7805-1-git-send-regression-fweisbec () gmail ! com
[Download RAW message or body]
This fixes:
btrfs-list.c: Dans la fonction «ino_resolve » :
btrfs-list.c:511: attention : déclaration implicite de la fonction « «strndup » »
btrfs-list.c:511: attention : incompatible implicit declaration of built-in function «strndup »
make: *** [btrfs-list.o] Erreur 1
and:
btrfs.c: Dans la fonction «split_command » :
btrfs.c:168: attention : déclaration implicite de la fonction « «strndup » »
btrfs.c:168: attention : incompatible implicit declaration of built-in function «strndup »
make: *** [btrfs.o] Erreur 1
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
---
btrfs-list.c | 1 +
btrfs.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
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>
--
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic