summaryrefslogtreecommitdiff
path: root/lang/php53
diff options
context:
space:
mode:
authortaca <taca>2012-02-02 15:44:09 +0000
committertaca <taca>2012-02-02 15:44:09 +0000
commit17a4214940ef337abff58c62fdd96e20d18e1d52 (patch)
tree62fdbae1a48a4ca223466e5547eadf7ae1b017d9 /lang/php53
parentc389f54f64d26bd2a5d25695db912c404a57df64 (diff)
downloadpkgsrc-17a4214940ef337abff58c62fdd96e20d18e1d52.tar.gz
Trying to fix build problem on NetBSD current recently.
Diffstat (limited to 'lang/php53')
-rw-r--r--lang/php53/distinfo3
-rw-r--r--lang/php53/patches/patch-main_streams_cast.c29
2 files changed, 31 insertions, 1 deletions
diff --git a/lang/php53/distinfo b/lang/php53/distinfo
index 45d6fa49c0f..8bc1d2d3223 100644
--- a/lang/php53/distinfo
+++ b/lang/php53/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.31 2012/01/20 03:22:08 taca Exp $
+$NetBSD: distinfo,v 1.32 2012/02/02 15:44:09 taca Exp $
SHA1 (php-5.3.9/php-5.3.9.tar.bz2) = fe0626735c3d9dd370cef9bdcfe9506629449f51
RMD160 (php-5.3.9/php-5.3.9.tar.bz2) = 428ed51982637f092c43369cf5cfb284d58da3f6
@@ -17,4 +17,5 @@ SHA1 (patch-ah) = b20c29c64b3099f77855a5ec28960dc1c4f65c83
SHA1 (patch-ai) = d4766893a2c47a4e4a744248dda265b0a9a66a1f
SHA1 (patch-aj) = d611d13fcc28c5d2b9e9586832ce4b8ae5707b48
SHA1 (patch-al) = fbbee5502e0cd1c47c6e7c15e0d54746414ec32e
+SHA1 (patch-main_streams_cast.c) = c169ccb73dc660e40eff9f9e168374f35eedadad
SHA1 (patch-php__mssql.c) = b46c688ff2d8da33ca2f9beb0eb9182b6edf7e23
diff --git a/lang/php53/patches/patch-main_streams_cast.c b/lang/php53/patches/patch-main_streams_cast.c
new file mode 100644
index 00000000000..f62d5f05729
--- /dev/null
+++ b/lang/php53/patches/patch-main_streams_cast.c
@@ -0,0 +1,29 @@
+$NetBSD: patch-main_streams_cast.c,v 1.1 2012/02/02 15:44:09 taca Exp $
+
+Fix build problem of newer NetBSD.
+
+--- main/streams/cast.c.orig 2012-01-01 13:15:04.000000000 +0000
++++ main/streams/cast.c
+@@ -34,7 +34,7 @@
+ typedef struct {
+ int (*reader)(void *, char *, int);
+ int (*writer)(void *, const char *, int);
+- fpos_t (*seeker)(void *, fpos_t, int);
++ off_t (*seeker)(void *, off_t, int);
+ int (*closer)(void *);
+ } COOKIE_IO_FUNCTIONS_T;
+
+@@ -68,11 +68,11 @@ static int stream_cookie_writer(void *co
+ return php_stream_write((php_stream *)cookie, (char *)buffer, size);
+ }
+
+-static fpos_t stream_cookie_seeker(void *cookie, off_t position, int whence)
++static off_t stream_cookie_seeker(void *cookie, off_t position, int whence)
+ {
+ TSRMLS_FETCH();
+
+- return (fpos_t)php_stream_seek((php_stream *)cookie, position, whence);
++ return (off_t)php_stream_seek((php_stream *)cookie, position, whence);
+ }
+
+ static int stream_cookie_closer(void *cookie)