[PATCH 2/3] libctf: fix unnecessary glibcism in testsuite
Nick Alcock
nick.alcock@oracle.com
Sun Oct 19 16:21:22 GMT 2025
libctf-regression/open-error-free.c #defines _GNU_SOURCE at its top.
This is already done by config.h if necessary: drop it.
libctf/ChangeLog:
* testsuite/libctf-regression/open-error-free.c: Drop
unnecessary system-dependent #define.
---
libctf/testsuite/libctf-regression/open-error-free.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/libctf/testsuite/libctf-regression/open-error-free.c b/libctf/testsuite/libctf-regression/open-error-free.c
index 7405cdb25f3..0cf55ad157b 100644
--- a/libctf/testsuite/libctf-regression/open-error-free.c
+++ b/libctf/testsuite/libctf-regression/open-error-free.c
@@ -1,6 +1,5 @@
/* Make sure that, on error, an opened dict is properly freed. */
-#define _GNU_SOURCE 1
#include "config.h"
#include <dlfcn.h>
#include <stdio.h>
--
2.51.0.284.g117bcb8de7
More information about the Binutils
mailing list