summaryrefslogtreecommitdiffstats
path: root/source/lib/replace/replace.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-06-06 09:27:43 +0000
committerMichael Adam <obnox@samba.org>2007-06-06 09:27:43 +0000
commita0d7a78b274c0a9e1292f63c34b315c6ca527866 (patch)
tree0ca50a3d03de60ac7fe707c132f40be88008092b /source/lib/replace/replace.c
parent4de1713ff40efce497885798c744334567b1d73e (diff)
downloadsamba-a0d7a78b274c0a9e1292f63c34b315c6ca527866.tar.gz
samba-a0d7a78b274c0a9e1292f63c34b315c6ca527866.tar.xz
samba-a0d7a78b274c0a9e1292f63c34b315c6ca527866.zip
r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-) I guess this had been merely forgotten. But beware: The implementations of rep_pread and rep_pwrite are not thread safe. Michael
Diffstat (limited to 'source/lib/replace/replace.c')
-rw-r--r--source/lib/replace/replace.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/lib/replace/replace.c b/source/lib/replace/replace.c
index 87e73d001c1..b86da53cafd 100644
--- a/source/lib/replace/replace.c
+++ b/source/lib/replace/replace.c
@@ -438,6 +438,10 @@ char *rep_mkdtemp(char *template)
}
#endif
+/*****************************************************************
+ Watch out: this is not thread safe.
+*****************************************************************/
+
#ifndef HAVE_PREAD
ssize_t rep_pread(int __fd, void *__buf, size_t __nbytes, off_t __offset)
{
@@ -448,6 +452,10 @@ ssize_t rep_pread(int __fd, void *__buf, size_t __nbytes, off_t __offset)
}
#endif
+/*****************************************************************
+ Watch out: this is not thread safe.
+*****************************************************************/
+
#ifndef HAVE_PWRITE
ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset)
{