From b7de76d825b02005ab8cf02b3977e4be441200c5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 26 Jun 2014 17:55:05 +0200 Subject: Mac OS X does provide localtime_r and gmtime_r Change-Id: I1142463972df76aac9e491abbfd08a67cf4db1f1 --- sal/osl/unx/system.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sal') diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h index 3a0babd4e53c..33aef2437309 100644 --- a/sal/osl/unx/system.h +++ b/sal/osl/unx/system.h @@ -402,8 +402,10 @@ struct passwd *getpwent_r(struct passwd *pwd, char *buffer, int buflen); extern struct spwd *getspnam_r(const char *name, struct spwd *result, char *buffer, int buflen); +#if !defined MACOSX struct tm *localtime_r(const time_t *timep, struct tm *buffer); struct tm *gmtime_r(const time_t *timep, struct tm *buffer); +#endif #endif /* !defined FREEBSD || (__FreeBSD_version < 500112) */ #if !defined(FREEBSD) || (__FreeBSD_version < 601103) struct hostent *gethostbyname_r(const char *name, struct hostent *result, -- cgit