summaryrefslogtreecommitdiff
path: root/source4/lib/replace/replace.h
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-05-07 13:10:31 +0200
committerStefan Metzmacher <metze@samba.org>2008-05-07 13:25:22 +0200
commitbbf4ce91462598cee1eebfb94a773194e56a7ff8 (patch)
tree4cb57fcc2cb269c83032ee637c745309246d0200 /source4/lib/replace/replace.h
parent387c17685c4455bceeea35dd50ce25d593f8892a (diff)
downloadsamba-bbf4ce91462598cee1eebfb94a773194e56a7ff8.tar.gz
samba-bbf4ce91462598cee1eebfb94a773194e56a7ff8.tar.bz2
samba-bbf4ce91462598cee1eebfb94a773194e56a7ff8.zip
libreplace: always provide utime() and utimes()
I'd like to also provide futimes(), but it seems that some systems doesn't support a it at kernel level. If someone knows how to write a portable replacement for futimes() please tell me... metze (This used to be commit a9604fe4a323dccb537cf02ea7594437b4995803)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r--source4/lib/replace/replace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index bf95169352..c69ea6cdac 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -101,6 +101,16 @@ void *rep_memmove(void *dest,const void *src,int size);
/* prototype is in "system/time.h" */
#endif
+#ifndef HAVE_UTIME
+#define utime rep_utime
+/* prototype is in "system/time.h" */
+#endif
+
+#ifndef HAVE_UTIMES
+#define utimes rep_utimes
+/* prototype is in "system/time.h" */
+#endif
+
#ifndef HAVE_STRLCPY
#define strlcpy rep_strlcpy
size_t rep_strlcpy(char *d, const char *s, size_t bufsize);