]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: fix unnecessary glibcism in testsuite
authorNick Alcock <nick.alcock@oracle.com>
Fri, 17 Oct 2025 13:05:31 +0000 (14:05 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 20 Oct 2025 10:23:15 +0000 (11:23 +0100)
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

index 7405cdb25f38774d23c7644b07baccbc2afaad27..0cf55ad157b86b2c80a31a27309a5149fd90bde2 100644 (file)
@@ -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>