summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-10-09 10:35:47 +0200
committerAnatol Belski <ab@php.net>2014-10-10 19:00:19 +0200
commit6445c4bd484239b92f8dd4439cab2bac87bc23c4 (patch)
tree2c7215100363fd244550a29991f6a6b0135645fc
parent6075e5a549dea536f022a6289ee75ecb7a54ce02 (diff)
downloadphp-git-6445c4bd484239b92f8dd4439cab2bac87bc23c4.tar.gz
use php_socket_t instead of int
-rw-r--r--ext/standard/file.h4
-rw-r--r--main/network.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/standard/file.h b/ext/standard/file.h
index fdace75d3b..ec60b86e99 100644
--- a/ext/standard/file.h
+++ b/ext/standard/file.h
@@ -23,6 +23,8 @@
#ifndef FILE_H
#define FILE_H
+#include "php_network.h"
+
PHP_MINIT_FUNCTION(file);
PHP_MSHUTDOWN_FUNCTION(file);
@@ -73,7 +75,7 @@ PHP_FUNCTION(sys_get_temp_dir);
PHP_MINIT_FUNCTION(user_streams);
PHPAPI int php_le_stream_context(TSRMLS_D);
-PHPAPI int php_set_sock_blocking(int socketd, int block TSRMLS_DC);
+PHPAPI int php_set_sock_blocking(php_socket_t socketd, int block TSRMLS_DC);
PHPAPI int php_copy_file(const char *src, const char *dest TSRMLS_DC);
PHPAPI int php_copy_file_ex(const char *src, const char *dest, int src_chk TSRMLS_DC);
PHPAPI int php_copy_file_ctx(const char *src, const char *dest, int src_chk, php_stream_context *ctx TSRMLS_DC);
diff --git a/main/network.c b/main/network.c
index bb21f0ffe4..9fd1285493 100644
--- a/main/network.c
+++ b/main/network.c
@@ -1123,7 +1123,7 @@ PHPAPI php_stream *_php_stream_sock_open_host(const char *host, unsigned short p
return stream;
}
-PHPAPI int php_set_sock_blocking(int socketd, int block TSRMLS_DC)
+PHPAPI int php_set_sock_blocking(php_socket_t socketd, int block TSRMLS_DC)
{
int ret = SUCCESS;
int flags;