summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2014-01-20 11:07:36 +0100
committerSungguk Na <sungguk.na@samsung.com>2020-01-06 12:48:39 +0900
commitf68aa7e9db510433754dd1d849d17eeb1050056d (patch)
tree03a4f23f76c82b204c373a28fe10cdb4295f4534
parent6372bf3677c216ce8dd4dad90c51a6f2bff17f12 (diff)
downloadltrace-f68aa7e9db510433754dd1d849d17eeb1050056d.tar.gz
ltrace-f68aa7e9db510433754dd1d849d17eeb1050056d.tar.bz2
ltrace-f68aa7e9db510433754dd1d849d17eeb1050056d.zip
Older glibc's don't expose the necessary interfaces without _GNU_SOURCE
Change-Id: Ib8ce6df9c10793e9136d3a5d8c335a8f289ebd3c Signed-off-by: Sungguk Na <sungguk.na@samsung.com>
-rw-r--r--read_config_file.c5
-rw-r--r--sysdeps/linux-gnu/hooks.c3
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 <sys/types.h>
#include <alloca.h>
#include <errno.h>