summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapped.c
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
commit16e4503ccad3f00d5987816d60097d8a561abf54 (patch)
treebfdccf2fd4a356ba35c954cd1c467293f2d92a5b /source3/smbwrapper/wrapped.c
parent8a72991abb2cab239983d68445fc1caa42c914cc (diff)
downloadsamba-16e4503ccad3f00d5987816d60097d8a561abf54.tar.gz
samba-16e4503ccad3f00d5987816d60097d8a561abf54.tar.bz2
samba-16e4503ccad3f00d5987816d60097d8a561abf54.zip
got smbw to compile again on Linux
(This used to be commit 614fd4119ce5aa37acd03321dc6ef263ae16bdc5)
Diffstat (limited to 'source3/smbwrapper/wrapped.c')
-rw-r--r--source3/smbwrapper/wrapped.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index 1b356e6a26..7b9100dd9c 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/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)) {