Source: libdrm Version: 2.4.94-1 Severity: important Tags: ftbfs, patch User: debian-k...@lists.debian.org Usertags: kfreebsd
Hello, Currently libdrm FTBFS GNU/kFreeBSD (and GNU/Hurd) due to a missing case in include/drm/drm.h. Attached is a patch to fix this. This patch is enough to make libdrm build properly on kfreebsd-any. A corresponding patch for Hurd together with fixes for PATH_MAX issues will be filed in a separate bug report. Thanks!
Index: libdrm-2.4.94/include/drm/drm.h =================================================================== --- libdrm-2.4.94.orig/include/drm/drm.h +++ libdrm-2.4.94/include/drm/drm.h @@ -57,6 +57,20 @@ typedef __uint64_t __u64; typedef size_t __kernel_size_t; typedef unsigned int drm_handle_t; +#elif defined(__FreeBSD_kernel__) +#include <sys/ioccom.h> +#include <sys/types.h> +typedef __int8_t __s8; +typedef __uint8_t __u8; +typedef __int16_t __s16; +typedef __uint16_t __u16; +typedef __int32_t __s32; +typedef __uint32_t __u32; +typedef __int64_t __s64; +typedef __uint64_t __u64; +typedef size_t __kernel_size_t; +typedef unsigned long drm_handle_t; + #else /* One of the BSDs */ #include <sys/ioccom.h> #include <sys/types.h>