pkgsrc/lang/php54/patches/patch-main_streams_cast.c
taca 88040b8ac3 Adding php54 (PHP 5.4.4) to pkgsrc.
Key new features: traits, a shortened array syntax, a built-in webserver for
testing purposes and more.

A migration guide: http://php.net/migration54
Full changes: http://www.php.net/ChangeLog-5.php
2012-06-16 05:21:55 +00:00

27 lines
927 B
C

$NetBSD: patch-main_streams_cast.c,v 1.1 2012/06/16 05:21:55 taca Exp $
--- main/streams/cast.c.orig 2012-05-03 17:10:43.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)