]> granicus.if.org Git - php/commitdiff
fix build
authorAntony Dovgal <tony2001@php.net>
Sat, 24 Jan 2009 13:09:13 +0000 (13:09 +0000)
committerAntony Dovgal <tony2001@php.net>
Sat, 24 Jan 2009 13:09:13 +0000 (13:09 +0000)
ext/sockets/sockets.c
ext/sqlite3/sqlite3.c

index d027d3bcecc5092415d42a61b2e064dc5d13263d..86be02eb5c246ae7b881878b93e5554db77d6318 100644 (file)
@@ -51,7 +51,6 @@
 # define set_errno(a)          WSASetLastError(a)
 # define close(a)              closesocket(a)
 #else
-# include "php_sockets.h"
 # include <sys/types.h>
 # include <sys/socket.h>
 # include <netdb.h>
@@ -67,6 +66,7 @@
 # include <sys/uio.h>
 # define IS_INVALID_SOCKET(a)  (a->bsd_socket < 0)
 # define set_errno(a) (errno = a)
+# include "php_sockets.h"
 #endif
 
 ZEND_DECLARE_MODULE_GLOBALS(sockets)
index dde6af26aa4a7661b65336801271be11458869eb..83cc3b550c43a26ef62cb2becb29449b3df1fbe1 100644 (file)
@@ -1080,7 +1080,7 @@ PHP_METHOD(sqlite3, openBlob)
        sqlite3_stream->position = 0;
        sqlite3_stream->size = sqlite3_blob_bytes(blob);
        
-       stream = php_stream_alloc_rel(&php_stream_sqlite3_ops, sqlite3_stream, 0, "rb");
+       stream = php_stream_alloc(&php_stream_sqlite3_ops, sqlite3_stream, 0, "rb");
 
        if (stream) {
                php_stream_to_zval(stream, return_value);