From: Zdenek Kabelac Date: Mon, 10 Jan 2011 13:25:22 +0000 (+0000) Subject: Use strndup as GNU extension X-Git-Tag: v2_02_91~1198 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=95d3c5f7e1a9a00db82b2c0855b3c18d9ca195c6;p=lvm2.git 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. --- diff --git a/test/lib/harness.c b/test/lib/harness.c index 27f0f40f1..5c6dd4fb2 100644 --- a/test/lib/harness.c +++ b/test/lib/harness.c @@ -12,6 +12,7 @@ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#define _GNU_SOURCE #include #include #include @@ -19,7 +20,6 @@ #include #include #include -#include static pid_t pid; static int fds[2];