lib/replace: add defines to let the callers find out if pwrite and pread are thread...
authorStefan Metzmacher <metze@samba.org>
Thu, 22 Jan 2009 10:52:54 +0000 (11:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 22 Jan 2009 11:39:34 +0000 (12:39 +0100)
metze

lib/replace/replace.h

index c3b0604a2cc92b8c87257fb93b435ceddd2c5732..688a7466c3d89babb58d36b5e24306ce3cc8de51 100644 (file)
@@ -434,11 +434,17 @@ char *rep_mkdtemp(char *template);
 #ifndef HAVE_PREAD
 #define pread rep_pread
 ssize_t rep_pread(int __fd, void *__buf, size_t __nbytes, off_t __offset);
+#define LIBREPLACE_PREAD_REPLACED 1
+#else
+#define LIBREPLACE_PREAD_NOT_REPLACED 1
 #endif
 
 #ifndef HAVE_PWRITE
 #define pwrite rep_pwrite
 ssize_t rep_pwrite(int __fd, const void *__buf, size_t __nbytes, off_t __offset);
+#define LIBREPLACE_PWRITE_REPLACED 1
+#else
+#define LIBREPLACE_PWRITE_NOT_REPLACED 1
 #endif
 
 #if !defined(HAVE_INET_NTOA) || defined(REPLACE_INET_NTOA)