dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Svante Signell <svante.signell@gmail.com>
To: dri-devel@lists.freedesktop.org
Subject: PATCH libdrm: Add Hurd-specific code to drm.h
Date: Tue, 09 Dec 2025 17:23:10 +0100	[thread overview]
Message-ID: <f3d038d708ddc2d7dd929b8125e417cb473a2fdf.camel@gmail.com> (raw)

[-- 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>

                 reply	other threads:[~2025-12-09 17:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f3d038d708ddc2d7dd929b8125e417cb473a2fdf.camel@gmail.com \
    --to=svante.signell@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).