Check for and use chsize instead of ftruncate if present.

This commit is contained in:
Steven Edwards 2002-05-05 21:03:44 +00:00 committed by Alexandre Julliard
parent ffb3d784d9
commit b9627c1486
4 changed files with 18 additions and 2 deletions

6
configure vendored
View File

@ -10284,6 +10284,8 @@ fi
@ -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 \

View File

@ -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 \

View File

@ -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

View File

@ -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