diff options
author | Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org> | 2022-02-23 00:24:26 +0700 |
---|---|---|
committer | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2022-02-23 11:46:05 +0700 |
commit | 3472a5887fe4423664c21136471807bd7f9a99bf (patch) | |
tree | d8dc2cec24a083e3240f7b243f7668af6b8cf630 | |
parent | 93e30695bb0c4e27bd2ab9a7e91a8279225d1264 (diff) | |
download | liburing-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-x | configure | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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) { |