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

Petr Machata pmachata-guest at moszumanska.debian.org
Tue Jan 21 01:39:49 UTC 2014


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

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

commit 000346220129bc5506895c9ad5d3f3c180a2c4aa
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 ea3ab88..712cbe1 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