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 \ _popen \
_stricmp \ _stricmp \
_strnicmp \ _strnicmp \
chsize \
clone \ clone \
ecvt \ ecvt \
finite \ finite \
fpclass \ fpclass \
ftruncate \
ftruncate64 \ ftruncate64 \
getnetbyaddr \ getnetbyaddr \
getnetbyname \ getnetbyname \
@ -10312,8 +10316,8 @@ for ac_func in \
memmove \ memmove \
mmap \ mmap \
pclose \ pclose \
pread \
popen \ popen \
pread \
pwrite \ pwrite \
rfork \ rfork \
select \ select \

View File

@ -861,10 +861,12 @@ AC_CHECK_FUNCS(\
_popen \ _popen \
_stricmp \ _stricmp \
_strnicmp \ _strnicmp \
chsize \
clone \ clone \
ecvt \ ecvt \
finite \ finite \
fpclass \ fpclass \
ftruncate \
ftruncate64 \ ftruncate64 \
getnetbyaddr \ getnetbyaddr \
getnetbyname \ getnetbyname \
@ -879,8 +881,8 @@ AC_CHECK_FUNCS(\
memmove \ memmove \
mmap \ mmap \
pclose \ pclose \
pread \
popen \ popen \
pread \
pwrite \ pwrite \
rfork \ rfork \
select \ select \

View File

@ -32,6 +32,9 @@
/* Define to use .string instead of .ascii */ /* Define to use .string instead of .ascii */
#undef HAVE_ASM_STRING #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. */ /* Define to 1 if you have the `clone' function. */
#undef HAVE_CLONE #undef HAVE_CLONE
@ -101,6 +104,9 @@
/* Define to 1 if you have the <freetype/tttables.h> header file. */ /* Define to 1 if you have the <freetype/tttables.h> header file. */
#undef HAVE_FREETYPE_TTTABLES_H #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. */ /* Define to 1 if you have the `ftruncate64' function. */
#undef HAVE_FTRUNCATE64 #undef HAVE_FTRUNCATE64

View File

@ -104,6 +104,10 @@ struct statfs;
#define RTLD_GLOBAL 0x100 #define RTLD_GLOBAL 0x100
#endif #endif
#if !defined(HAVE_FTRUNCATE) && defined(HAVE_CHSIZE)
#define ftruncate chsize
#endif
#if !defined(HAVE_POPEN) && defined(HAVE__POPEN) #if !defined(HAVE_POPEN) && defined(HAVE__POPEN)
#define popen _popen #define popen _popen
#endif #endif