diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-03-27 13:02:03 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-03-27 16:28:43 +0100 |
commit | 58b3982a15eb55f2d4c364d256f37970e1390392 (patch) | |
tree | 39bc5d6de06750264aaec78c628f693e6c410ede /sal/osl | |
parent | 5b51aa12e8ebfa894ecfdd0c8c9004aa99e6f46d (diff) |
Remove unused macros that caused compiler warnings and simplify
Change-Id: Ica146899a5557732babf4e07b20b9e3d32426c6e
Reviewed-on: https://gerrit.libreoffice.org/69824
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/unx/system.cxx | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/sal/osl/unx/system.cxx b/sal/osl/unx/system.cxx index f17a8c19493a..875f4101667c 100644 --- a/sal/osl/unx/system.cxx +++ b/sal/osl/unx/system.cxx @@ -26,33 +26,12 @@ #ifdef NO_PTHREAD_RTL -/* struct passwd differs on some platforms */ - -#if defined(MACOSX) || defined(IOS) || defined(OPENBSD) || defined(NETBSD) || defined(HAIKU) - -//No mutex needed on macOS, gethostbyname is thread safe - #if defined(MACOSX) -#define RTL_MUTEX_LOCK -#define RTL_MUTEX_UNLOCK - #include <premac.h> #include <Foundation/Foundation.h> #include <postmac.h> -#else //defined(MACOSX) - -static pthread_mutex_t getrtl_mutex = PTHREAD_MUTEX_INITIALIZER; - -#define RTL_MUTEX_LOCK pthread_mutex_lock(&getrtl_mutex); -#define RTL_MUTEX_UNLOCK pthread_mutex_unlock(&getrtl_mutex); - -#endif //defined(MACOSX) - -#endif // OSX || IOS || OPENBSD || NETBSD - -#if defined(MACOSX) /* * Add support for resolving Mac native alias files (not the same as unix alias files) * (what are "unix alias files"?) |