Package: libkvm-dev
Version: 9.0+ds1-2
Severity: important
Hi,
/usr/include/kvm.h requires sys/types.h:
tokkee@kfreebsd:~$ cat kvm-test.c
#include <kvm.h>
int main(void) { return 0; }
tokkee@kfreebsd:~$ gcc kvm-test.c
In file included from kvm-test.c:1:0:
/usr/include/kvm.h:45:1: error: unknown type name ‘__size_t’
/usr/include/kvm.h:45:18: error: conflicting types for ‘size_t’
In file included from /usr/include/machine/_types.h:8:0,
from /usr/include/sys/_types.h:33,
from /usr/include/kvm.h:37,
from kvm-test.c:1:
/usr/include/machine-amd64/_types.h:85:20: note: previous declaration of ‘size_t’ was here
Including sys/types.h before kvm.h fixes that issue.
It would be nice if either kvm.h includes sys/types.h itself or if the
documentation mentions the fact, that sys/types.h needs to be included
first (which is not currently the case and which is why I think, this is
not intended and thus severity important ;-)).
TIA,
Sebastian
--
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/
Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin
Attachment:
signature.asc
Description: Digital signature