From f68aa7e9db510433754dd1d849d17eeb1050056d Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 20 Jan 2014 11:07:36 +0100 Subject: [PATCH] Older glibc's don't expose the necessary interfaces without _GNU_SOURCE Change-Id: Ib8ce6df9c10793e9136d3a5d8c335a8f289ebd3c Signed-off-by: Sungguk Na --- read_config_file.c | 5 +---- sysdeps/linux-gnu/hooks.c | 3 ++- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/read_config_file.c b/read_config_file.c index e9c050d..9d3ccd8 100644 --- a/read_config_file.c +++ b/read_config_file.c @@ -21,10 +21,7 @@ * 02110-1301 USA */ -/* getline is POSIX.1-2008. It was originally a GNU extension, and - * chances are uClibc still needs _GNU_SOURCE, but for now try it this - * way. */ -#define _POSIX_C_SOURCE 200809L +#define _GNU_SOURCE #include "config.h" diff --git a/sysdeps/linux-gnu/hooks.c b/sysdeps/linux-gnu/hooks.c index 3fb3614..e9cb8d9 100644 --- a/sysdeps/linux-gnu/hooks.c +++ b/sysdeps/linux-gnu/hooks.c @@ -18,7 +18,8 @@ * 02110-1301 USA */ -#define _POSIX_C_SOURCE 200809L +#define _GNU_SOURCE + #include #include #include -- 2.7.4