revive wmmemload port
A.J. "Fonz" van Werven
freebsd at skysmurf.nl
Fri Aug 28 05:55:21 UTC 2015
Marco Beishuizen wrote:
> But the build stops with a lot of errors:
>
> ...
> In file included from mem_freebsd.c:18:
> /usr/include/vm/vm_param.h:94:2: error: unknown type name 'u_int'
> u_int xsw_version;
> ^
> /usr/include/vm/vm_param.h:95:2: error: unknown type name 'dev_t'; did you
> mean 'div_t'?
> dev_t xsw_dev;
> ^
Hmm,
It seems like <vm/vm_param.h> uses types such as u_int and dev_t without
including <sys/types.h>, which is where those types are defined. I'm not
sure whether that's a bug in FreeBSD or it's supposed to be this way, but
in the meantime, does it help if you add
#include <sys/types.h>
to mem_freebsd.c? If so, I'd suggest adding a patch to the port's files/
directory.
HTH,
AvW
--
I'm not completely useless, I can be used as a bad example.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150828/fe5412f8/attachment.bin>
More information about the freebsd-ports
mailing list