summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapped.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbwrapper/wrapped.c')
-rw-r--r--source3/smbwrapper/wrapped.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index 6bfb465828..e87bd5f1f2 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/smbwrapper/wrapped.c
@@ -76,17 +76,19 @@
}
#endif
+#ifndef NO_OPEN64_ALIAS
#ifdef HAVE__OPEN64
int _open64(const char *name, int flags, mode_t mode)
{
return open64(name, flags, mode);
}
-#elif HAVE___OPEN
+#elif HAVE___OPEN64
int __open64(const char *name, int flags, mode_t mode)
{
return open64(name, flags, mode);
}
#endif
+#endif
#ifdef HAVE_PREAD
ssize_t pread(int fd, void *buf, size_t size, off_t ofs)
@@ -626,7 +628,7 @@
#endif
#ifdef HAVE_UTIMES
- int utimes(const char *name,struct timeval tvp[2])
+ int utimes(const char *name,const struct timeval tvp[2])
{
if (smbw_path(name)) {
return smbw_utimes(name, tvp);