Commit b9627c14 authored by Steven Edwards's avatar Steven Edwards Committed by Alexandre Julliard

Check for and use chsize instead of ftruncate if present.

parent ffb3d784
......@@ -10287,6 +10287,8 @@ fi
for ac_func in \
__libc_fork \
_lwp_create \
......@@ -10294,10 +10296,12 @@ for ac_func in \
_popen \
_stricmp \
_strnicmp \
chsize \
clone \
ecvt \
finite \
fpclass \
ftruncate \
ftruncate64 \
getnetbyaddr \
getnetbyname \
......@@ -10312,8 +10316,8 @@ for ac_func in \
memmove \
mmap \
pclose \
pread \
popen \
pread \
pwrite \
rfork \
select \
......
......@@ -861,10 +861,12 @@ AC_CHECK_FUNCS(\
_popen \
_stricmp \
_strnicmp \
chsize \
clone \
ecvt \
finite \
fpclass \
ftruncate \
ftruncate64 \
getnetbyaddr \
getnetbyname \
......@@ -879,8 +881,8 @@ AC_CHECK_FUNCS(\
memmove \
mmap \
pclose \
pread \
popen \
pread \
pwrite \
rfork \
select \
......
......@@ -32,6 +32,9 @@
/* Define to use .string instead of .ascii */
#undef HAVE_ASM_STRING
/* Define to 1 if you have the `chsize' function. */
#undef HAVE_CHSIZE
/* Define to 1 if you have the `clone' function. */
#undef HAVE_CLONE
......@@ -101,6 +104,9 @@
/* Define to 1 if you have the <freetype/tttables.h> header file. */
#undef HAVE_FREETYPE_TTTABLES_H
/* Define to 1 if you have the `ftruncate' function. */
#undef HAVE_FTRUNCATE
/* Define to 1 if you have the `ftruncate64' function. */
#undef HAVE_FTRUNCATE64
......
......@@ -104,6 +104,10 @@ struct statfs;
#define RTLD_GLOBAL 0x100
#endif
#if !defined(HAVE_FTRUNCATE) && defined(HAVE_CHSIZE)
#define ftruncate chsize
#endif
#if !defined(HAVE_POPEN) && defined(HAVE__POPEN)
#define popen _popen
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment