pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/libfetch/files glibc loves to not define common st...
details: https://anonhg.NetBSD.org/pkgsrc/rev/2dbb6fae9bfa
branches: trunk
changeset: 542180:2dbb6fae9bfa
user: joerg <joerg%pkgsrc.org@localhost>
date: Tue May 06 17:37:30 2008 +0000
description:
glibc loves to not define common string functions and fail miserably
as some headers are already included. Define _GNU_SOURCE early...
diffstat:
net/libfetch/files/http.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (31 lines):
diff -r c994417bf010 -r 2dbb6fae9bfa net/libfetch/files/http.c
--- a/net/libfetch/files/http.c Tue May 06 15:43:03 2008 +0000
+++ b/net/libfetch/files/http.c Tue May 06 17:37:30 2008 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: http.c,v 1.18 2008/04/24 07:55:00 joerg Exp $ */
+/* $NetBSD: http.c,v 1.19 2008/05/06 17:37:30 joerg Exp $ */
/*-
* Copyright (c) 2000-2004 Dag-Erling Coïdan Smørgrav
* Copyright (c) 2003 Thomas Klausner <wiz%NetBSD.org@localhost>
@@ -63,16 +63,16 @@
* SUCH DAMAGE.
*/
+#ifdef __linux__
+/* Keep this down to Linux, it can create surprises else where. */
+#define _GNU_SOURCE
+#endif
+
#if HAVE_CONFIG_H
#include "config.h"
#endif
#include <nbcompat.h>
-#ifdef __linux__
-/* Keep this down to Linux, it can create surprises else where. */
-#define _XOPEN_SOURCE
-#endif
-
#include <sys/types.h>
#include <sys/socket.h>
Home |
Main Index |
Thread Index |
Old Index