diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-26 17:55:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-26 17:55:05 +0200 |
commit | b7de76d825b02005ab8cf02b3977e4be441200c5 (patch) | |
tree | 67438c809dff4552061777b38b43c8f4a421dd83 /sal | |
parent | f899ce3db7d5b9127ca95ad0675d1e5b6147e70b (diff) |
Mac OS X does provide localtime_r and gmtime_r
Change-Id: I1142463972df76aac9e491abbfd08a67cf4db1f1
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
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, |