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:
parent
2dd15068fb
commit
95d3c5f7e1
@ -12,6 +12,7 @@
|
|||||||
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define _GNU_SOURCE
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@ -19,7 +20,6 @@
|
|||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
static pid_t pid;
|
static pid_t pid;
|
||||||
static int fds[2];
|
static int fds[2];
|
||||||
|
Loading…
Reference in New Issue
Block a user