diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-04 15:54:31 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-05 10:39:37 +0200 |
commit | 4cc4f9c00a4c43811074286494a621d4c9252613 (patch) | |
tree | fce540897280bb096bb9f5192f97af8af14eb369 /build | |
parent | ef773bf4d5cbd96a6f5c904b2feec6c9fe598589 (diff) | |
download | php-git-4cc4f9c00a4c43811074286494a621d4c9252613.tar.gz |
Use standard types in fopencookie test
Instead of internal __size_t / __off64_t types use ssize_t and off64_t.
This makes it work on musl as well.
Diffstat (limited to 'build')
-rw-r--r-- | build/php.m4 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/build/php.m4 b/build/php.m4 index e5b85b24c4..0205d01c3b 100644 --- a/build/php.m4 +++ b/build/php.m4 @@ -1464,16 +1464,16 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <stdio.h> struct cookiedata { - __off64_t pos; + off64_t pos; }; -__ssize_t reader(void *cookie, char *buffer, size_t size) +ssize_t reader(void *cookie, char *buffer, size_t size) { return size; } -__ssize_t writer(void *cookie, const char *buffer, size_t size) +ssize_t writer(void *cookie, const char *buffer, size_t size) { return size; } int closer(void *cookie) { return 0; } -int seeker(void *cookie, __off64_t *position, int whence) +int seeker(void *cookie, off64_t *position, int whence) { ((struct cookiedata*)cookie)->pos = *position; return 0; } cookie_io_functions_t funcs = {reader, writer, seeker, closer}; |