atheme / libmowgli-2

mowgli development framework (version 2) -- generic runtime for atheme applications
Other
149 stars 31 forks source link

Missing architectures in machine.h #28

Open marillat opened 10 years ago

marillat commented 10 years ago

libmowgli-2 currently fails to build on the following architectures since the corresponding architectures are not defined in src/libmowgli/platform/machine.h:

kfreebsd-386, kfreebsd-amd64, s390x, arm64, m68k

See Debian bug https://bugs.debian.org/745608

grawity commented 10 years ago

Does it compile and run properly if those architectures are added manually?

marillat commented 10 years ago

With this patch kfreebsd-* build fine. I can't test for other arches.

--- a/src/libmowgli/platform/machine.h
+++ b/src/libmowgli/platform/machine.h
@@ -186,7 +186,7 @@
 #endif
 #endif

-#if defined __linux || defined __linux__
+#if defined __linux || defined __linux__ || defined __FreeBSD_kernel__
 #define MOWGLI_OS_LINUX
 #define MOWGLI_OS linux
 #define MOWGLI_OS_THREADS_POSIX