cvs: php4 /main network.c

From: Date: Sat, 16 Mar 2002 03:37:11 +0000
Subject: cvs: php4 /main network.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-10209@lists.php.net to get a copy of this message
yohgaki Fri Mar 15 22:37:11 2002 EDT Modified files: /php4/main network.c Log: Quick fix build error when ptrdiff_t is not defined in types.h or sys/types.h Index: php4/main/network.c diff -u php4/main/network.c:1.32 php4/main/network.c:1.33 --- php4/main/network.c:1.32 Fri Mar 15 20:58:13 2002 +++ php4/main/network.c Fri Mar 15 22:37:11 2002 @@ -15,7 +15,7 @@ | Author: Stig Venaas <venaas@uninett.no> | +----------------------------------------------------------------------+ */ -/* $Id: network.c,v 1.32 2002/03/16 01:58:13 wez Exp $ */ +/* $Id: network.c,v 1.33 2002/03/16 03:37:11 yohgaki Exp $ */ #define PHP_SOCK_CHUNK_SIZE 8192 #define MAX_CHUNKS_PER_READ 10 @@ -778,7 +778,9 @@ } 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); }

« previous php.cvs (#10209) next »