[erlang-patches] [PATCH] make os_mon compile on NetBSD 4.0
Raphael Langerhorst
raphael-langerhorst@REDACTED
Sat Aug 2 22:18:57 CEST 2008
Hi all,
I just registered to this list (and to -questions), so hello everyone.
Today I compiled R12B-3 from source on NetBSD/evbarm 4.0
Attached a patch is not complete, but shows where to find the vmparam.h file. The location is architecture dependend, so there need to be a check in configure, or makefile or wherever (I haven't looked that far into things).
The rule for the include file is as follows:
use "uname -m" to detect the architecture and use the output for the include path:
#include <__arch__/vmparam.h>
where __arch__ is the output of uname -m.
This was the only error that occured while compiling R12B-3 on NetBSD 4.0 (no extra options to configure).
Best Regards,
Raphael
--
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
-------------- next part --------------
--- lib/os_mon/c_src/memsup.c.orig 2008-08-02 22:09:50.000000000 +0200
+++ lib/os_mon/c_src/memsup.c 2008-08-02 20:16:47.000000000 +0200
@@ -99,8 +99,13 @@
#include <sys/types.h>
#include <sys/sysctl.h>
#ifndef __OpenBSD__
+#ifndef __NetBSD__
#include <vm/vm_param.h>
#endif
+#endif
+#ifdef __NetBSD__
+#include <evbarm/vmparam.h>
+#endif
#ifdef __FreeBSD__
#include <sys/vmmeter.h>
#endif
More information about the erlang-patches
mailing list