[erlang-patches] [PATCH] make os_mon compile on NetBSD 4.0

Per Hedeland <>
Sun Aug 3 00:47:02 CEST 2008


"Raphael Langerhorst" <> wrote:
>
>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.

No, you shouldn't need to modify such things depending on the host
architecture on any Unix version. The correct directive for that file on
NetBSD (I checked 3.1 and 4.0 i386) is

#include <machine/vmparam.h>

Whether this actually makes memsup *work* on NetBSD is another thing - I
haven't tried that, but from a quick look it seems that as-is, it will
exit with "unsupported_os".

--Per Hedeland



More information about the erlang-patches mailing list