pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/swi-prolog-lite Define declare getwd if it exists...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f9dc7bcfaf08
branches:  trunk
changeset: 610818:f9dc7bcfaf08
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Nov 07 15:30:04 2012 +0000

description:
Define declare getwd if it exists, it can end up with different
visiblity.

diffstat:

 lang/swi-prolog-lite/distinfo                     |   3 ++-
 lang/swi-prolog-lite/patches/patch-src_pl-funcs.h |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r 474779283e68 -r f9dc7bcfaf08 lang/swi-prolog-lite/distinfo
--- a/lang/swi-prolog-lite/distinfo     Wed Nov 07 15:29:13 2012 +0000
+++ b/lang/swi-prolog-lite/distinfo     Wed Nov 07 15:30:04 2012 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2011/12/17 16:11:25 marino Exp $
+$NetBSD: distinfo,v 1.15 2012/11/07 15:30:04 joerg Exp $
 
 SHA1 (swi-prolog/pl-5.11.18.tar.gz) = b929d47f2e92230e2afcaaaf25e9a34c40adc54e
 RMD160 (swi-prolog/pl-5.11.18.tar.gz) = 1cbf0dab3a9cd63b3178d6a43c983b31402d7b7f
@@ -7,3 +7,4 @@
 SHA1 (patch-ae) = 4135212b4c5faf70e01e78e45df5e1a0ccc927a6
 SHA1 (patch-ar) = 2bf3648f29c6263ea2efe13b95309a1fe72b14b8
 SHA1 (patch-packages_clib_sha1_brg_endian.h) = db9f50eb0d0f92e44a79048d0bb84b690945964b
+SHA1 (patch-src_pl-funcs.h) = 792257fcc533c835a607e6d660ed42058b7a8a95
diff -r 474779283e68 -r f9dc7bcfaf08 lang/swi-prolog-lite/patches/patch-src_pl-funcs.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/swi-prolog-lite/patches/patch-src_pl-funcs.h Wed Nov 07 15:30:04 2012 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_pl-funcs.h,v 1.1 2012/11/07 15:30:04 joerg Exp $
+
+Don't change visibility of a system prototype.
+
+--- src/pl-funcs.h.orig        2012-11-04 22:29:01.000000000 +0000
++++ src/pl-funcs.h
+@@ -426,7 +426,9 @@ COMMON(void)               RemoveTemporaryFiles(void
+ COMMON(bool)          OpenStream(int fd);
+ COMMON(bool)          expandVars(const char *pattern, char *expanded, int len);
+ COMMON(char *)                ExpandOneFile(const char *spec, char *file);
++#ifndef HAVE_GETWD
+ COMMON(char *)                getwd(char *buf);
++#endif
+ COMMON(char *)                AbsoluteFile(const char *spec, char *path);
+ COMMON(int)           IsAbsolutePath(const char *spec);
+ COMMON(char *)                BaseName(const char *f);



Home | Main Index | Thread Index | Old Index