diff options
-rwxr-xr-x | source3/configure | 2 | ||||
-rw-r--r-- | source3/configure.in | 2 | ||||
-rw-r--r-- | source3/include/config.h.in | 3 | ||||
-rw-r--r-- | source3/smbwrapper/wrapped.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/source3/configure b/source3/configure index 8f2c421b01..61112d2d59 100755 --- a/source3/configure +++ b/source3/configure @@ -4666,7 +4666,7 @@ else fi done -for ac_func in open64 _open64 __open64 +for ac_func in open64 _open64 __open64 creat64 do echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 echo "configure:4673: checking for $ac_func" >&5 diff --git a/source3/configure.in b/source3/configure.in index 945dceb5ec..a16ed13f78 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -184,7 +184,7 @@ AC_CHECK_FUNCS(_stat64 __stat64 _fstat64 __fstat64 _lstat64 __lstat64) AC_CHECK_FUNCS(llseek _llseek __llseek readdir64 _readdir64 __readdir64) AC_CHECK_FUNCS(pread _pread __pread pread64 _pread64 __pread64) AC_CHECK_FUNCS(pwrite _pwrite __pwrite pwrite64 _pwrite64 __pwrite64) -AC_CHECK_FUNCS(open64 _open64 __open64) +AC_CHECK_FUNCS(open64 _open64 __open64 creat64) AC_CACHE_CHECK([for long long],samba_cv_have_longlong,[ AC_TRY_RUN([#include <stdio.h> diff --git a/source3/include/config.h.in b/source3/include/config.h.in index b5c3fa7b26..930832a8bd 100644 --- a/source3/include/config.h.in +++ b/source3/include/config.h.in @@ -360,6 +360,9 @@ /* Define if you have the connect function. */ #undef HAVE_CONNECT +/* Define if you have the creat64 function. */ +#undef HAVE_CREAT64 + /* Define if you have the crypt function. */ #undef HAVE_CRYPT diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c index 65550b19cc..6bfb465828 100644 --- a/source3/smbwrapper/wrapped.c +++ b/source3/smbwrapper/wrapped.c @@ -803,12 +803,12 @@ } #endif -#ifndef LINUX int creat(const char *path, mode_t mode) { return open(path, O_WRONLY|O_CREAT|O_TRUNC, mode); } +#ifdef HAVE_CREAT64 int creat64(const char *path, mode_t mode) { return open64(path, O_WRONLY|O_CREAT|O_TRUNC, mode); |