dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* PATCH libdrm: Add Hurd-specific code to drm.h
@ 2025-12-09 16:23 Svante Signell
  0 siblings, 0 replies; only message in thread
From: Svante Signell @ 2025-12-09 16:23 UTC (permalink / raw)
  To: dri-devel

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

Hello,

In order to make libdrm build on GNU/Hurd the file include/drm/drm.h needs to be
modified with Hurd-specific entries, see attachment. According to libdrm
documentation this file needs to be modified upstream. Once the file drm.h is
modified the patches submitted to libdrm will hopefully be committed, see
https://gitlab.freedesktop.org/mesa/libdrm/-/merge_requests/443

Thanks!

[-- Attachment #2: include_drm_drm.h.diff --]
[-- Type: text/x-patch, Size: 712 bytes --]

Index: libdrm-2.4.129/include/drm/drm.h
===================================================================
--- libdrm-2.4.129.orig/include/drm/drm.h
+++ libdrm-2.4.129/include/drm/drm.h
@@ -41,6 +41,21 @@
 #include <asm/ioctl.h>
 typedef unsigned int drm_handle_t;
 
+#elif   defined(__GNU__)
+#include <sys/types.h>
+#include <sys/ioctl.h>
+#include <mach/i386/ioccom.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 int drm_handle_t;
+
 #else /* One of the BSDs */
 
 #include <stdint.h>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-12-09 17:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-09 16:23 PATCH libdrm: Add Hurd-specific code to drm.h Svante Signell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).