summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-09-16 17:03:17 +0200
committerAndras Timar <andras.timar@collabora.com>2017-04-23 21:58:54 +0200
commitcd5e1202eef8dfd8aa8fec2b8775137ef94858c4 (patch)
tree8abee94dc816ab90eb13fa11d78f0f05ff10200e /sal
parente7b15e556ca462f85678753f43e17769ffded244 (diff)
Emscripten: First steps of porting to Emscripten
See https://wiki.documentfoundation.org/Development/Emscripten for details Change-Id: I977a8b9e98b9be13c263fef48f567b92347d0492 Reviewed-on: https://gerrit.libreoffice.org/18643 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> (cherry picked from commit 338f19a8cecfa632fa23d42cc27769a832d62104)
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/socket.cxx2
-rw-r--r--sal/osl/unx/system.hxx5
2 files changed, 4 insertions, 3 deletions
diff --git a/sal/osl/unx/socket.cxx b/sal/osl/unx/socket.cxx
index 6aba809bce4f..7de16d6e0d1f 100644
--- a/sal/osl/unx/socket.cxx
+++ b/sal/osl/unx/socket.cxx
@@ -728,7 +728,7 @@ static struct hostent* _osl_gethostbyname_r (
const char *name, struct hostent *result,
char *buffer, int buflen, int *h_errnop)
{
-#if defined(LINUX) || defined(ANDROID) || defined(FREEBSD) || defined(DRAGONFLY)
+#if defined(LINUX) || defined(ANDROID) || defined(FREEBSD) || defined(DRAGONFLY) || defined(EMSCRIPTEN)
struct hostent *__result; /* will be the same as result */
int __error;
__error = gethostbyname_r (name, result, buffer, buflen,
diff --git a/sal/osl/unx/system.hxx b/sal/osl/unx/system.hxx
index 75c3d9d90d36..cca52ddf12bc 100644
--- a/sal/osl/unx/system.hxx
+++ b/sal/osl/unx/system.hxx
@@ -92,7 +92,7 @@
#endif
-#ifdef ANDROID
+#if defined(ANDROID) || defined(EMSCRIPTEN)
# include <pthread.h>
# include <sys/file.h>
# include <sys/ioctl.h>
@@ -280,7 +280,8 @@ int macxp_resolveAlias(char *path, int buflen);
!defined(AIX) && \
!defined(SOLARIS) && !defined(MACOSX) && \
!defined(OPENBSD) && !defined(DRAGONFLY) && \
- !defined(IOS) && !defined(ANDROID)
+ !defined(IOS) && !defined(ANDROID) && \
+ !defined(EMSCRIPTEN)
# error "Target platform not specified!"
#endif