ports/net/pecl-smbclient/files/patch-smb_streams.c
Po-Chuan Hsieh ff1f637330
net/pecl-smbclient: Fix build with Clang 16 on i386
/wrkdirs/usr/ports/net/pecl-smbclient/work-php80/smbclient-1.1.1/smb_streams.c:328:2: error: incompatible function pointer types initializing 'int (*)(php_stream *, zend_off_t, int, zend_off_t *)' (aka 'int (*)(struct _php_stream *, int, int, int *)') with an expression of type 'int (php_stream *, off_t, int, off_t *)' (aka 'int (struct _php_stream *, long long, int, long long *)') [-Wincompatible-function-pointer-types]
        php_smb_ops_seek,
        ^~~~~~~~~~~~~~~~
1 error generated.
2023-08-26 17:27:27 +08:00

11 lines
407 B
C

--- smb_streams.c.orig 2023-04-17 03:27:10 UTC
+++ smb_streams.c
@@ -270,7 +270,7 @@ static int php_smb_ops_stat(php_stream *stream, php_st
return 0;
}
-static int php_smb_ops_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC)
+static int php_smb_ops_seek(php_stream *stream, zend_off_t offset, int whence, zend_off_t *newoffset TSRMLS_DC)
{
STREAM_DATA_FROM_STREAM();