Needed for classpath. GCJ is also needed but that can be dealt with
separately.
Fix compilation with musl by defining _GNU_SOURCE. What's funny here is
that if __USE_GNU gets replaced, the host build fails. The man page says
_GNU_SOURCE for pthread_getattr_np but glibc violates that statement.
Removed classpath dependency. classpaths must select jamvm, not the other
way around.
Removed target whitelist. Switched to blacklist.
Fixed License information.
Various other cleanups.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry-picked from 2972cc98eb
)
12 lines
207 B
Diff
12 lines
207 B
Diff
--- a/src/os/linux/os.c
|
|
+++ b/src/os/linux/os.c
|
|
@@ -26,6 +26,9 @@
|
|
#include <sys/sysinfo.h>
|
|
|
|
#define __USE_GNU
|
|
+#ifndef _GNU_SOURCE
|
|
+#define _GNU_SOURCE
|
|
+#endif
|
|
#include <dlfcn.h>
|
|
#include <pthread.h>
|
|
|