diff options
author | Wez Furlong <wez@php.net> | 2002-03-16 02:33:00 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-16 02:33:00 +0000 |
commit | 52982c422e96c1264ce06474fe8ddb504a54d0f0 (patch) | |
tree | c6ece52a461d7106ef93c8cc7136484ceb7fb814 /main/php_network.h | |
parent | 59ba0b5172672b1a68b8be745409bf057cbfceac (diff) | |
download | php-git-52982c422e96c1264ce06474fe8ddb504a54d0f0.tar.gz |
This should help with some build problems/warnings under win32.
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
Diffstat (limited to 'main/php_network.h')
-rw-r--r-- | main/php_network.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/main/php_network.h b/main/php_network.h index 98bdffa703..a9a4bc1623 100644 --- a/main/php_network.h +++ b/main/php_network.h @@ -37,6 +37,11 @@ #define shutdown(s,n) /* nothing */ #endif +#ifdef PHP_WIN32 +#define EWOULDBLOCK WSAEWOULDBLOCK +# define fsync _commit +# define ftruncate(a, b) chsize(a, b) +#endif /* defined(PHP_WIN32) */ #ifdef HAVE_NETINET_IN_H # include <netinet/in.h> @@ -54,6 +59,10 @@ #include <openssl/ssl.h> #endif +#ifdef HAVE_STDDEF_H +#include <stddef.h> +#endif + #ifdef HAVE_SOCKADDR_STORAGE typedef struct sockaddr_storage php_sockaddr_storage; #else |