1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

Use strndup as GNU extension

strndup needs _GNU_SOURCE defined as it's GNU extension.
Remove duplicate string.h header added in previous harness commit.
This commit is contained in:
Zdenek Kabelac 2011-01-10 13:25:22 +00:00
parent 2dd15068fb
commit 95d3c5f7e1

View 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];