summaryrefslogtreecommitdiffstats
path: root/source/smbwrapper
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-07-06 02:28:44 +0000
committerAndrew Tridgell <tridge@samba.org>2000-07-06 02:28:44 +0000
commit614fd4119ce5aa37acd03321dc6ef263ae16bdc5 (patch)
tree98b4aeb096f38e65503ed374306c3984d0611fb2 /source/smbwrapper
parent873774e36dfc877727133a86fbc2c2ddc2d563cd (diff)
downloadsamba-614fd4119ce5aa37acd03321dc6ef263ae16bdc5.tar.gz
samba-614fd4119ce5aa37acd03321dc6ef263ae16bdc5.tar.xz
samba-614fd4119ce5aa37acd03321dc6ef263ae16bdc5.zip
got smbw to compile again on Linux
Diffstat (limited to 'source/smbwrapper')
-rw-r--r--source/smbwrapper/smbw.c3
-rw-r--r--source/smbwrapper/wrapped.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/source/smbwrapper/smbw.c b/source/smbwrapper/smbw.c
index 3a63df7dec9..5532e687cee 100644
--- a/source/smbwrapper/smbw.c
+++ b/source/smbwrapper/smbw.c
@@ -1423,7 +1423,7 @@ say no to acls
}
#endif
-
+#ifdef HAVE_EXPLICIT_LARGEFILE_SUPPORT
#ifdef HAVE_STAT64
/* this can't be in wrapped.c because of include conflicts */
void stat64_convert(struct stat *st, struct stat64 *st64)
@@ -1453,6 +1453,7 @@ say no to acls
pstrcpy(d64->d_name, d->d_name);
}
#endif
+#endif
#ifdef HAVE___XSTAT
diff --git a/source/smbwrapper/wrapped.c b/source/smbwrapper/wrapped.c
index 1b356e6a26d..7b9100dd9ca 100644
--- a/source/smbwrapper/wrapped.c
+++ b/source/smbwrapper/wrapped.c
@@ -92,7 +92,7 @@
}
#endif
-#ifdef HAVE_PREAD64
+#if defined(HAVE_PREAD64) && defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT)
ssize_t pread64(int fd, void *buf, size_t size, off64_t ofs)
{
if (smbw_fd(fd)) {
@@ -114,7 +114,7 @@
}
#endif
-#ifdef HAVE_PWRITE64
+#if defined(HAVE_PWRITE64) && defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT)
ssize_t pwrite64(int fd, void *buf, size_t size, off64_t ofs)
{
if (smbw_fd(fd)) {