com php-src: cleanup: ext/zip/config.m4 ext/zip/zip_stream. c

From: Date: Fri, 09 Jun 2017 07:22:05 +0000
Subject: com php-src: cleanup: ext/zip/config.m4 ext/zip/zip_stream. c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-98037@lists.php.net to get a copy of this message
Commit: 75cda24b823a17f38e2ecca227a8c41bda00970c Author: Remi Collet <remi@php.net> Fri, 9 Jun 2017 09:22:05 +0200 Parents: 22cdfc2504a75adb5414357c6c8a9feea2693f84 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=75cda24b823a17f38e2ecca227a8c41bda00970c Log: cleanup ssite_t is used in lot of places, without need for this. If really needed, should be in global location, not in an extension Changed paths: M ext/zip/config.m4 M ext/zip/zip_stream.c Diff: diff --git a/ext/zip/config.m4 b/ext/zip/config.m4 index e6035bc..6422b8f 100644 --- a/ext/zip/config.m4 +++ b/ext/zip/config.m4 @@ -188,21 +188,6 @@ in esac AC_SUBST([MANFMT]) -AH_BOTTOM([ -#ifndef HAVE_SSIZE_T -# if SIZEOF_SIZE_T == SIZEOF_INT -typedef int ssize_t; -# elif SIZEOF_SIZE_T == SIZEOF_LONG -typedef long ssize_t; -# elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG -typedef long long ssize_t; -# else -#error no suitable type for ssize_t found -# endif -#endif -]) - - dnl so we always include the known-good working hack. PHP_ADD_MAKEFILE_FRAGMENT fi diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c index 2ed5840..8e7dbcf 100644 --- a/ext/zip/zip_stream.c +++ b/ext/zip/zip_stream.c @@ -30,6 +30,9 @@ #include "ext/standard/url.h" +/* needed for ssize_t definition */ +#include <sys/types.h> + struct php_zip_stream_data_t { struct zip *za; struct zip_file *zf;

« previous php.cvs (#98037) next »