Re: Bug#677260: xserver-xorg-video-openchrome: FTBFS[kfreebsd]: error: unknown type name 'uint8_t'
On 12/06/12 22:19, Julien Cristau wrote:
> stdint.h is a userspace header though, I assume it's not available in
> kernel space?
I don't know. But that is where the via_drm.h bundled in openchrome
0.2.904+svn1050 was getting those definitions from.
This commit shows when via_drm.h (as it is now shipped in libdrm-dev)
became broken at some point:
http://anonscm.debian.org/gitweb/?p=pkg-xorg/lib/libdrm.git;a=commitdiff;h=82bf52fbcdf1e71840c2024bb2bc05a8daeaafad
And this change (I wouldn't call it a patch, I doubt it is correct)
seems to fix it so that openchrome_drv can build again:
--- /usr/include/libdrm/drm.h.orig
+++ /usr/include/libdrm/drm.h
@@ -46,6 +46,7 @@
#include <sys/ioccom.h>
#include <sys/types.h>
+#include <stdint.h>
typedef int8_t __s8;
typedef uint8_t __u8;
typedef int16_t __s16;
Regards,
--
Steven Chamberlain
steven@pyro.eu.org
Reply to: