svn commit: samba r18039 - in
branches/SAMBA_4_0/source/lib/replace: .
jelmer at samba.org
jelmer at samba.org
Mon Sep 4 13:07:29 GMT 2006
Author: jelmer
Date: 2006-09-04 13:07:29 +0000 (Mon, 04 Sep 2006)
New Revision: 18039
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=18039
Log:
Include header with time_t if needed.
Modified:
branches/SAMBA_4_0/source/lib/replace/replace.h
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/replace.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/replace.h 2006-09-04 12:57:40 UTC (rev 18038)
+++ branches/SAMBA_4_0/source/lib/replace/replace.h 2006-09-04 13:07:29 UTC (rev 18039)
@@ -76,11 +76,21 @@
void *rep_memmove(void *dest,const void *src,int size);
#endif
+#if !defined(HAVE_MKTIME) || !defined(HAVE_TIMEGM)
+#include <sys/time.h>
+#endif
+
#ifndef HAVE_MKTIME
#define mktime rep_mktime
time_t rep_mktime(struct tm *t);
#endif
+#ifndef HAVE_TIMEGM
+struct tm;
+#define timegm rep_timegm
+time_t rep_timegm(struct tm *tm);
+#endif
+
#ifndef HAVE_STRLCPY
#define strlcpy rep_strlcpy
size_t rep_strlcpy(char *d, const char *s, size_t bufsize);
@@ -145,11 +155,6 @@
#define bzero(a,b) memset((a),'\0',(b))
#endif
-#ifndef HAVE_TIMEGM
-struct tm;
-#define timegm rep_timegm
-time_t rep_timegm(struct tm *tm);
-#endif
#ifndef PRINTF_ATTRIBUTE
#if __GNUC__ >= 3
More information about the samba-cvs
mailing list