aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-02-22 00:07:57 +0400
committerDavid Gibson <david@gibson.dropbear.id.au>2023-02-27 19:00:17 +1100
commit71c19f20b3ef780c17c97e3495c584532c1c6921 (patch)
tree107bc047db0f106382a0e8eee0f1dad06f7f3a1d /tests
parent039a99414e778332d8f9c04cbd3072e1dcc62798 (diff)
downloaddtc-71c19f20b3ef780c17c97e3495c584532c1c6921.zip
dtc-71c19f20b3ef780c17c97e3495c584532c1c6921.tar.gz
dtc-71c19f20b3ef780c17c97e3495c584532c1c6921.tar.bz2
Do not redefine _GNU_SOURCE if already set
Or else, compilation will fail. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/testutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testutils.c b/tests/testutils.c
index 10129c0..d1ddee3 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -5,7 +5,9 @@
* Copyright (C) 2006 David Gibson, IBM Corporation.
*/
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* for strsignal() in glibc. FreeBSD has it either way */
+#endif
#include <stdio.h>
#include <stdlib.h>