[ltrace-commits] 01/01: Older glibc's don't expose the necessary interfaces without _GNU_SOURCE

Petr Machata pmachata-guest at moszumanska.debian.org
Fri Jan 2 12:26:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit 32b49fd253809fc408c5c187be52198aab04a521
Author: Petr Machata <pmachata at redhat.com>
Date:   Mon Jan 20 11:07:36 2014 +0100

    Older glibc's don't expose the necessary interfaces without _GNU_SOURCE
---
 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 <sys/types.h>
 #include <alloca.h>
 #include <errno.h>

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list