Skip to content

Commit

Permalink
Few modifications for emscripten. Don't know where i'm going with thi…
Browse files Browse the repository at this point in the history
…s yet exactly.
  • Loading branch information
wasabii committed Dec 31, 2024
1 parent f2320fd commit 5435e85
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions jdk/src/solaris/native/common/jdk_util_md.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@
#include <math.h>
#define ISNANF(f) _isnanf(f)
#define ISNAND(d) _isnan(d)
#elif defined(__EMSCRIPTEN__)
#include <math.h>
#define ISNANF(f) isnan(f)
#define ISNAND(d) isnan(d)
#else
#error "missing platform-specific definition here"
#endif
Expand Down
2 changes: 1 addition & 1 deletion jdk/src/solaris/native/java/io/io_util_md.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include <sys/filio.h>
#endif

#if defined(__linux__) || defined(_ALLBSD_SOURCE) || defined(_AIX)
#if defined(__linux__) || defined(_ALLBSD_SOURCE) || defined(_AIX) || defined(__EMSCRIPTEN__)
#include <sys/ioctl.h>
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <strings.h>
#endif

#if defined(__linux__) || defined(_ALLBSD_SOURCE)
#if defined(__linux__) || defined(_ALLBSD_SOURCE) || defined(__EMSCRIPTEN__)
#include <string.h>
#endif

Expand Down
2 changes: 1 addition & 1 deletion jdk/src/solaris/native/sun/net/spi/DefaultProxySelector.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <dlfcn.h>
#include <stdio.h>
#include <stdlib.h>
#if defined(__linux__) || defined(_ALLBSD_SOURCE)
#if defined(__linux__) || defined(_ALLBSD_SOURCE) || defined(__EMSCRIPTEN__)
#include <string.h>
#else
#include <strings.h>
Expand Down

0 comments on commit 5435e85

Please sign in to comment.