summaryrefslogtreecommitdiff
path: root/lang/ghc/patches
diff options
context:
space:
mode:
authorcjs <cjs@pkgsrc.org>2008-03-31 06:18:12 +0000
committercjs <cjs@pkgsrc.org>2008-03-31 06:18:12 +0000
commita37f81bb1c04ed22e07be9dbf4e53abacb5b8209 (patch)
tree6da132cd4a31738970e0b9e5568ea629b046cf2c /lang/ghc/patches
parent7d812f8bda57fe73d2640ce40f5dff456b61785e (diff)
downloadpkgsrc-a37f81bb1c04ed22e07be9dbf4e53abacb5b8209.tar.gz
Fix another system library symbol versioning problem, this time with
socket(), and bump PKGREVISION.
Diffstat (limited to 'lang/ghc/patches')
-rw-r--r--lang/ghc/patches/patch-ap13
-rw-r--r--lang/ghc/patches/patch-aq13
2 files changed, 26 insertions, 0 deletions
diff --git a/lang/ghc/patches/patch-ap b/lang/ghc/patches/patch-ap
new file mode 100644
index 00000000000..a2436b6fe18
--- /dev/null
+++ b/lang/ghc/patches/patch-ap
@@ -0,0 +1,13 @@
+$NetBSD: patch-ap,v 1.3 2008/03/31 06:18:12 cjs Exp $
+
+--- libraries/network/include/HsNet.h.orig 2007-12-11 03:25:19.000000000 +0900
++++ libraries/network/include/HsNet.h 2008-03-31 12:36:50.000000000 +0900
+@@ -139,3 +139,8 @@
+ }
+
+ #endif
++
++INLINE int __hsnet_socket(int domain, int type, int protocol)
++{
++ return socket(domain, type, protocol);
++}
diff --git a/lang/ghc/patches/patch-aq b/lang/ghc/patches/patch-aq
new file mode 100644
index 00000000000..d3d76694320
--- /dev/null
+++ b/lang/ghc/patches/patch-aq
@@ -0,0 +1,13 @@
+$NetBSD: patch-aq,v 1.3 2008/03/31 06:18:12 cjs Exp $
+
+--- libraries/network/Network/Socket.hsc.orig 2008-03-31 12:40:13.000000000 +0900
++++ libraries/network/Network/Socket.hsc 2008-03-31 12:40:41.000000000 +0900
+@@ -2499,7 +2499,7 @@
+ c_close :: CInt -> IO CInt
+ #endif
+
+-foreign import CALLCONV unsafe "socket"
++foreign import CALLCONV unsafe "__hsnet_socket"
+ c_socket :: CInt -> CInt -> CInt -> IO CInt
+ foreign import CALLCONV unsafe "bind"
+ c_bind :: CInt -> Ptr SockAddr -> CInt{-CSockLen???-} -> IO CInt