Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit From Jess Thrysoee: add ifndef around def of _GN...



details:   https://anonhg.NetBSD.org/src/rev/cc6ae7e954cf
branches:  trunk
changeset: 753976:cc6ae7e954cf
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 15 00:50:03 2010 +0000

description:
>From Jess Thrysoee: add ifndef around def of _GNU_SOURCE

diffstat:

 lib/libedit/histedit.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 171ff432c8a8 -r cc6ae7e954cf lib/libedit/histedit.h
--- a/lib/libedit/histedit.h    Wed Apr 14 22:26:33 2010 +0000
+++ b/lib/libedit/histedit.h    Thu Apr 15 00:50:03 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: histedit.h,v 1.45 2010/01/03 18:27:10 christos Exp $   */
+/*     $NetBSD: histedit.h,v 1.46 2010/04/15 00:50:03 christos Exp $   */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -248,8 +248,10 @@
  */
 #ifdef __linux__
 /* Apparently we need _GNU_SOURCE defined to get access to wcsdup on Linux */
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
 #endif
+#endif
 
 #include <wchar.h>
 #include <wctype.h>



Home | Main Index | Thread Index | Old Index