summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>2022-02-23 00:24:26 +0700
committerAmmar Faizi <ammarfaizi2@gnuweeb.org>2022-02-23 11:46:05 +0700
commit3472a5887fe4423664c21136471807bd7f9a99bf (patch)
treed8dc2cec24a083e3240f7b243f7668af6b8cf630
parent93e30695bb0c4e27bd2ab9a7e91a8279225d1264 (diff)
downloadliburing-3472a5887fe4423664c21136471807bd7f9a99bf.tar.gz
liburing-3472a5887fe4423664c21136471807bd7f9a99bf.tar.bz2
configure: Fix _GNU_SOURCE redefinition warning
``` gcc -D_GNU_SOURCE -include config-host.h -Werror=implicit-function-declaration \ -o /tmp/tmp.UrAfu1BQqA/liburing-conf.exe /tmp/tmp.UrAfu1BQqA/liburing-conf.c /tmp/tmp.UrAfu1BQqA/liburing-conf.c:1: warning: "_GNU_SOURCE" redefined 1 | #define _GNU_SOURCE | <command-line>: note: this is the location of the previous definition ``` Introduced by commit 17d25f4c73b89 ("test/io_uring_register: fix -Wimplicit-function-declaration of memfd_create"). Fixes: 17d25f4c73b89dfc722a367914776577e266638c ("test/io_uring_register: fix -Wimplicit-function-declaration of memfd_create") Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org> Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
-rwxr-xr-xconfigure1
1 files changed, 0 insertions, 1 deletions
diff --git a/configure b/configure
index 1f7f1c3..b8ecb7b 100755
--- a/configure
+++ b/configure
@@ -369,7 +369,6 @@ print_config "has_ucontext" "$has_ucontext"
# check for memfd_create(2)
has_memfd_create="no"
cat > $TMPC << EOF
-#define _GNU_SOURCE
#include <sys/mman.h>
int main(int argc, char **argv)
{