[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann sbergman at redhat.com
Thu Jun 26 08:55:37 PDT 2014


 sal/osl/unx/system.h |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit b7de76d825b02005ab8cf02b3977e4be441200c5
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Jun 26 17:55:05 2014 +0200

    Mac OS X does provide localtime_r and gmtime_r
    
    Change-Id: I1142463972df76aac9e491abbfd08a67cf4db1f1

diff --git a/sal/osl/unx/system.h b/sal/osl/unx/system.h
index 3a0babd..33aef24 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,


More information about the Libreoffice-commits mailing list