pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/libfetch/files Be a bit nicer to native linux use ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9807a9684f65
branches:  trunk
changeset: 550913:9807a9684f65
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Dec 02 16:59:03 2008 +0000

description:
Be a bit nicer to native linux use and define _GNU_SOURCE here as well.

diffstat:

 net/libfetch/files/ftp.c |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 475748f21052 -r 9807a9684f65 net/libfetch/files/ftp.c
--- a/net/libfetch/files/ftp.c  Tue Dec 02 16:57:13 2008 +0000
+++ b/net/libfetch/files/ftp.c  Tue Dec 02 16:59:03 2008 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftp.c,v 1.24 2008/10/08 15:11:21 joerg Exp $   */
+/*     $NetBSD: ftp.c,v 1.25 2008/12/02 16:59:03 joerg Exp $   */
 /*-
  * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav
  * Copyright (c) 2008 Joerg Sonnenberger <joerg%NetBSD.org@localhost>
@@ -57,6 +57,11 @@
  *
  */
 
+#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



Home | Main Index | Thread Index | Old Index