From 5c19f73aa206fcd2be55e2f20aaa8939b3cc5ff9 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Thu, 13 May 2021 04:12:29 +0530 Subject: [PATCH] misc: remove unnecessary _GNU_SOURCE macros Since we are building with the `-D_GNU_SOURCE` option turned on, the macro definitions are not needed anymore. Refs: https://github.com/libuv/libuv/pull/3165#issuecomment-835747442 PR-URL: https://github.com/libuv/libuv/pull/3168 Reviewed-By: Jameson Nash Reviewed-By: Ben Noordhuis --- src/unix/getaddrinfo.c | 3 --- src/unix/linux-syscalls.h | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/unix/getaddrinfo.c b/src/unix/getaddrinfo.c index d7ca7d1a..77337ace 100644 --- a/src/unix/getaddrinfo.c +++ b/src/unix/getaddrinfo.c @@ -21,9 +21,6 @@ /* Expose glibc-specific EAI_* error codes. Needs to be defined before we * include any headers. */ -#ifndef _GNU_SOURCE -# define _GNU_SOURCE -#endif #include "uv.h" #include "internal.h" diff --git a/src/unix/linux-syscalls.h b/src/unix/linux-syscalls.h index c85231f6..b4d9082d 100644 --- a/src/unix/linux-syscalls.h +++ b/src/unix/linux-syscalls.h @@ -22,9 +22,6 @@ #ifndef UV_LINUX_SYSCALL_H_ #define UV_LINUX_SYSCALL_H_ -#undef _GNU_SOURCE -#define _GNU_SOURCE - #include #include #include