Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit - don't set _GNU_SOURCE. We are not supposed to ...
details: https://anonhg.NetBSD.org/src/rev/7c98c363e8fe
branches: trunk
changeset: 343611:7c98c363e8fe
user: christos <christos%NetBSD.org@localhost>
date: Tue Feb 16 19:29:51 2016 +0000
description:
- don't set _GNU_SOURCE. We are not supposed to make decisions for others.
- don't special-case wcsdup()
>From Ingo Schwarze.
diffstat:
lib/libedit/config.h | 3 ---
lib/libedit/histedit.h | 13 +------------
lib/libedit/sys.h | 7 +------
3 files changed, 2 insertions(+), 21 deletions(-)
diffs (65 lines):
diff -r 7d061ec8345d -r 7c98c363e8fe lib/libedit/config.h
--- a/lib/libedit/config.h Tue Feb 16 19:11:25 2016 +0000
+++ b/lib/libedit/config.h Tue Feb 16 19:29:51 2016 +0000
@@ -187,9 +187,6 @@
/* Define to 1 if you have the `vis' function. */
#define HAVE_VIS 1
-/* Define to 1 if you have the `wcsdup' function. */
-#define HAVE_WCSDUP 1
-
/* Define to 1 if `fork' works. */
#define HAVE_WORKING_FORK 1
diff -r 7d061ec8345d -r 7c98c363e8fe lib/libedit/histedit.h
--- a/lib/libedit/histedit.h Tue Feb 16 19:11:25 2016 +0000
+++ b/lib/libedit/histedit.h Tue Feb 16 19:29:51 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: histedit.h,v 1.53 2014/06/18 18:12:28 christos Exp $ */
+/* $NetBSD: histedit.h,v 1.54 2016/02/16 19:29:51 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -249,21 +249,10 @@
/*
* Begin Wide Character Support
*/
-#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>
/*
- * Wide character versions
- */
-
-/*
* ==== Editing ====
*/
typedef struct lineinfow {
diff -r 7d061ec8345d -r 7c98c363e8fe lib/libedit/sys.h
--- a/lib/libedit/sys.h Tue Feb 16 19:11:25 2016 +0000
+++ b/lib/libedit/sys.h Tue Feb 16 19:29:51 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys.h,v 1.21 2016/02/15 22:48:59 christos Exp $ */
+/* $NetBSD: sys.h,v 1.22 2016/02/16 19:29:51 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -92,11 +92,6 @@
ssize_t getline(char **line, size_t *len, FILE *fp);
#endif
-#ifndef HAVE_WCSDUP
-#include <wchar.h>
-wchar_t *wcsdup(const wchar_t *);
-#endif
-
#ifndef _DIAGASSERT
#define _DIAGASSERT(x)
#endif
Home |
Main Index |
Thread Index |
Old Index