]> sourceware.org Git - lvm2.git/commitdiff
Use strndup as GNU extension
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 10 Jan 2011 13:25:22 +0000 (13:25 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 10 Jan 2011 13:25:22 +0000 (13:25 +0000)
strndup needs _GNU_SOURCE defined as it's GNU extension.
Remove duplicate string.h header added in previous harness commit.

test/lib/harness.c

index 27f0f40f17340e3e275b931da36a16ecfb947792..5c6dd4fb2de9d28b90ea8363a3c33b9eca760df0 100644 (file)
@@ -12,6 +12,7 @@
  * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#define _GNU_SOURCE
 #include <fcntl.h>
 #include <string.h>
 #include <stdio.h>
@@ -19,7 +20,6 @@
 #include <sys/wait.h>
 #include <unistd.h>
 #include <stdlib.h>
-#include <string.h>
 
 static pid_t pid;
 static int fds[2];
This page took 0.038499 seconds and 5 git commands to generate.