Skip to content

Commit 75cda24

Browse files
committed
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
1 parent 22cdfc2 commit 75cda24

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

ext/zip/config.m4

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -188,21 +188,6 @@ in
188188
esac
189189
AC_SUBST([MANFMT])
190190

191-
AH_BOTTOM([
192-
#ifndef HAVE_SSIZE_T
193-
# if SIZEOF_SIZE_T == SIZEOF_INT
194-
typedef int ssize_t;
195-
# elif SIZEOF_SIZE_T == SIZEOF_LONG
196-
typedef long ssize_t;
197-
# elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
198-
typedef long long ssize_t;
199-
# else
200-
#error no suitable type for ssize_t found
201-
# endif
202-
#endif
203-
])
204-
205-
206191
dnl so we always include the known-good working hack.
207192
PHP_ADD_MAKEFILE_FRAGMENT
208193
fi

ext/zip/zip_stream.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030

3131
#include "ext/standard/url.h"
3232

33+
/* needed for ssize_t definition */
34+
#include <sys/types.h>
35+
3336
struct php_zip_stream_data_t {
3437
struct zip *za;
3538
struct zip_file *zf;

0 commit comments

Comments
 (0)