Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95284 invoked by uid 1010); 14 Nov 2003 11:16:56 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 95257 invoked by uid 1007); 14 Nov 2003 11:16:56 -0000 Message-ID: <20031114111656.95256.qmail@pb1.pair.com> To: internals@lists.php.net Date: Fri, 14 Nov 2003 12:16:53 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030903 Thunderbird/0.2 X-Accept-Language: en-us, en MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.126.21.70 Subject: Re: PATCH ssize_t without messing with fcgi source From: abies@php.net (Ard Biesheuvel) > Works with everything. (phew!) > You might wanna use long instead of int here, as sizeof(ssize_t) is supposed to match the native pointer size. -- Ard > ------------------------------------------------------------------------ > > Index: main/config.w32.h > =================================================================== > RCS file: /repository/php-src/main/config.w32.h,v > retrieving revision 1.80 > diff -u -r1.80 config.w32.h > --- main/config.w32.h 13 Nov 2003 10:32:04 -0000 1.80 > +++ main/config.w32.h 14 Nov 2003 00:56:36 -0000 > @@ -174,7 +174,7 @@ > #define SIZEOF_LONG_LONG_INT 0 > #define SIZEOF_LONG_LONG 0 > #define SIZEOF_INTMAX_T 0 > -#define ssize_t SSIZE_T > +#define ssize_t int > #ifdef _WIN64 > # define SIZEOF_SIZE_T 8 > # define SIZEOF_PTRDIFF_T 8 > Index: sapi/cgi/libfcgi/include/fcgi_config_win32.h > =================================================================== > RCS file: /repository/php-src/sapi/cgi/libfcgi/include/fcgi_config_win32.h,v > retrieving revision 1.2 > diff -u -r1.2 fcgi_config_win32.h > --- sapi/cgi/libfcgi/include/fcgi_config_win32.h 13 Nov 2003 10:32:05 -0000 1.2 > +++ sapi/cgi/libfcgi/include/fcgi_config_win32.h 14 Nov 2003 00:56:38 -0000 > @@ -106,3 +106,6 @@ > /* Define as `__inline' if that's what the C compiler calls it, or to nothing > if it is not supported. */ > /* #undef inline */ > + > +/* Define to `int' if does not define. */ > +#define ssize_t int