@ 261102.1

230724.4 · 8a4f246876ebfec5807c69d4c378d0d161a4b029

Remove all #define _GNU_SOURCE in source files

This is unnecessary since we are using AC_USE_SYSTEM_EXTENSIONS in configure.ac, which makes the compiler always run with -D_GNU_SOURCE=1 when building for GNU/Linux. Also, the #define _GNU_SOURCE in src/util.c, and in src/inject_errors.c (--enable-inject-errors), were not guarded by a #ifndef _GNU_SOURCE so they were just triggering redefinition warnings.

reading declarations

Changes to src/inject_errors.c. All files

src/inject_errors.c

@@ -1,5 +1,3 @@--#define _GNU_SOURCE /* for RTLD_NEXT */ #include <assert.h> #include <dlfcn.h> #include <errno.h>