diff options
author | taca <taca> | 2012-02-02 15:44:09 +0000 |
---|---|---|
committer | taca <taca> | 2012-02-02 15:44:09 +0000 |
commit | 17a4214940ef337abff58c62fdd96e20d18e1d52 (patch) | |
tree | 62fdbae1a48a4ca223466e5547eadf7ae1b017d9 /lang/php53/patches | |
parent | c389f54f64d26bd2a5d25695db912c404a57df64 (diff) | |
download | pkgsrc-17a4214940ef337abff58c62fdd96e20d18e1d52.tar.gz |
Trying to fix build problem on NetBSD current recently.
Diffstat (limited to 'lang/php53/patches')
-rw-r--r-- | lang/php53/patches/patch-main_streams_cast.c | 29 |
1 files changed, 29 insertions, 0 deletions
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) |