summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--[-rwxr-xr-x]system/include/emscripten/bind.h0
-rw-r--r--[-rwxr-xr-x]system/include/emscripten/wire.h0
-rw-r--r--system/include/netdb.h2
-rw-r--r--system/lib/sdl.cpp13
-rw-r--r--system/lib/sdl.symbols1
5 files changed, 16 insertions, 0 deletions
diff --git a/system/include/emscripten/bind.h b/system/include/emscripten/bind.h
index 7aa2a55e..7aa2a55e 100755..100644
--- a/system/include/emscripten/bind.h
+++ b/system/include/emscripten/bind.h
diff --git a/system/include/emscripten/wire.h b/system/include/emscripten/wire.h
index 6fb15fc7..6fb15fc7 100755..100644
--- a/system/include/emscripten/wire.h
+++ b/system/include/emscripten/wire.h
diff --git a/system/include/netdb.h b/system/include/netdb.h
index 147cdff4..48acdcc4 100644
--- a/system/include/netdb.h
+++ b/system/include/netdb.h
@@ -85,6 +85,8 @@ const char* hstrerror(int err);
extern int h_errno;
+#include <netinet/in.h>
+
#ifdef __cplusplus
}
#endif
diff --git a/system/lib/sdl.cpp b/system/lib/sdl.cpp
new file mode 100644
index 00000000..7038cdb1
--- /dev/null
+++ b/system/lib/sdl.cpp
@@ -0,0 +1,13 @@
+
+#include <stdlib.h>
+
+// force malloc&free to be included in from libc
+struct Force {
+ Force() {
+ void *x = malloc(10);
+ free(x);
+ }
+};
+
+static Force f;
+
diff --git a/system/lib/sdl.symbols b/system/lib/sdl.symbols
new file mode 100644
index 00000000..c2c0af42
--- /dev/null
+++ b/system/lib/sdl.symbols
@@ -0,0 +1 @@
+ W SDL_Init