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
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>
/* 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
}
#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);