diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-16 03:37:11 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-16 03:37:11 +0000 |
commit | 31fe5e46cb86e9d7441c5bad14144cdc415d5c79 (patch) | |
tree | 8c2be2d91944d26377efbadbe942cee42f70aed9 | |
parent | 2d08c867c88994bc5218bb5dc2a3dd205b92aa9b (diff) | |
download | php-git-31fe5e46cb86e9d7441c5bad14144cdc415d5c79.tar.gz |
Quick fix build error when ptrdiff_t is not defined in types.h or sys/types.h
-rw-r--r-- | main/network.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/network.c b/main/network.c index 82bb4c5dca..33dcfbf0c5 100644 --- a/main/network.c +++ b/main/network.c @@ -778,7 +778,9 @@ static char *php_sockop_gets(php_stream *stream, char *buf, size_t maxlen) } if(p) { - amount = (ptrdiff_t) p - (ptrdiff_t) READPTR(sock) + 1; +/* FIXME: ptrdiff_t is better, but just not all system support this type */ +/* amount = (ptrdiff_t) p - (ptrdiff_t) READPTR(sock) + 1; */ + amount = (long) p - (long) READPTR(sock) + 1; } else { amount = TOREAD(sock); } |