summaryrefslogtreecommitdiff
path: root/lang/swi-prolog-lite
diff options
context:
space:
mode:
authorjoerg <joerg>2012-11-07 15:30:04 +0000
committerjoerg <joerg>2012-11-07 15:30:04 +0000
commitf5dbb679924b4e8ecda6e4e1742f2a96e4c0a8be (patch)
treee244a02678ab1e852471ae113de9851d5a6fdd04 /lang/swi-prolog-lite
parent7bf5070c391a3904e68e13d6098b5d34ba253b3b (diff)
downloadpkgsrc-f5dbb679924b4e8ecda6e4e1742f2a96e4c0a8be.tar.gz
Define declare getwd if it exists, it can end up with different
visiblity.
Diffstat (limited to 'lang/swi-prolog-lite')
-rw-r--r--lang/swi-prolog-lite/distinfo3
-rw-r--r--lang/swi-prolog-lite/patches/patch-src_pl-funcs.h16
2 files changed, 18 insertions, 1 deletions
diff --git a/lang/swi-prolog-lite/distinfo b/lang/swi-prolog-lite/distinfo
index 2812f1dd566..3f9d88b9ddd 100644
--- a/lang/swi-prolog-lite/distinfo
+++ b/lang/swi-prolog-lite/distinfo
@@ -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-ad) = 7b3899fe4162582efe955c67d5dc3ed42e7d1702
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 --git a/lang/swi-prolog-lite/patches/patch-src_pl-funcs.h b/lang/swi-prolog-lite/patches/patch-src_pl-funcs.h
new file mode 100644
index 00000000000..4c868ac0a04
--- /dev/null
+++ b/lang/swi-prolog-lite/patches/patch-src_pl-funcs.h
@@ -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);