From c9e21d8770a6bff73cbb2554b4192cbe0a289893 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 6 Jun 2007 09:27:43 +0000 Subject: 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 (This used to be commit 5f5b93149216eb57872e4291336685b96948681e) --- source3/lib/replace/replace.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source3/lib/replace/replace.c') diff --git a/source3/lib/replace/replace.c b/source3/lib/replace/replace.c index 87e73d001c..b86da53caf 100644 --- a/source3/lib/replace/replace.c +++ b/source3/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) { -- cgit