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

index 64347ea1e65915c807c7b4daa5a9def8b0658b6b..fbec34b379807e4605aa3a4018fd0619ce4e0cb0 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 dd3a9f9e32b802fa5c8d15c0d26f8ae8f5151deb..3a57cad6a57519068f155a1d10ae63364bf143cd 100644 (file)
@@ -1053,7 +1053,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);