[151094] trunk/dports/devel/libedit
jeremyhu at macports.org
jeremyhu at macports.org
Sun Aug 7 00:17:00 PDT 2016
Revision: 151094
https://trac.macports.org/changeset/151094
Author: jeremyhu at macports.org
Date: 2016-08-07 00:17:00 -0700 (Sun, 07 Aug 2016)
Log Message:
-----------
libedit: Add missing declaration of wcsdup on older systems (#51891)
Modified Paths:
--------------
trunk/dports/devel/libedit/Portfile
Added Paths:
-----------
trunk/dports/devel/libedit/files/wcsdup.patch
Modified: trunk/dports/devel/libedit/Portfile
===================================================================
--- trunk/dports/devel/libedit/Portfile 2016-08-07 04:19:41 UTC (rev 151093)
+++ trunk/dports/devel/libedit/Portfile 2016-08-07 07:17:00 UTC (rev 151094)
@@ -7,6 +7,7 @@
name libedit
epoch 20090923
version 20160618-3.1
+revision 1
categories devel
platforms darwin
license BSD
@@ -28,6 +29,7 @@
patchfiles doc__Makefile.in.patch \
src__Makefile.in.patch \
src__sys.h.patch \
+ wcsdup.patch \
configure.patch
post-patch {
Added: trunk/dports/devel/libedit/files/wcsdup.patch
===================================================================
--- trunk/dports/devel/libedit/files/wcsdup.patch (rev 0)
+++ trunk/dports/devel/libedit/files/wcsdup.patch 2016-08-07 07:17:00 UTC (rev 151094)
@@ -0,0 +1,17 @@
+https://trac.macports.org/ticket/51891#comment:12
+
+diff -Naurp libedit-20160618-3.1.orig/src/sys.h libedit-20160618-3.1/src/sys.h
+--- src/sys.h 2016-08-06 23:48:04.000000000 -0700
++++ src/sys.h 2016-08-07 00:01:18.000000000 -0700
+@@ -97,6 +97,11 @@ size_t strlcpy(char *dst, const char *sr
+ ssize_t getline(char **line, size_t *len, FILE *fp);
+ #endif
+
++#ifndef HAVE_WCSDUP
++#include <wchar.h>
++wchar_t * wcsdup(const wchar_t *str);
++#endif
++
+ #ifndef _DIAGASSERT
+ #define _DIAGASSERT(x)
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160807/d0f02959/attachment.html>
More information about the macports-changes
mailing list