ports: more webkitgtk work

This commit is contained in:
Matheus
2026-06-03 19:39:28 -03:00
parent 91d93872ad
commit 008cfd9b63
17 changed files with 198 additions and 31 deletions
+14 -7
View File
@@ -1,15 +1,22 @@
diff --git libdrm-clean/include/drm/drm.h libdrm-workdir/include/drm/drm.h
index 4e4f7c2..f0d0f63 100644
index 4e4f7c2..a88780b 100644
--- libdrm-clean/include/drm/drm.h
+++ libdrm-workdir/include/drm/drm.h
@@ -43,8 +43,17 @@ typedef unsigned int drm_handle_t;
@@ -35,16 +35,24 @@
#ifndef _DRM_H_
#define _DRM_H_
-#if defined(__linux__)
+#if defined(__linux__) || defined(__astral__)
#include <linux/types.h>
#include <asm/ioctl.h>
typedef unsigned int drm_handle_t;
#else /* One of the BSDs */
-#include <stdint.h>
-#include <sys/ioccom.h>
+ #include <stdint.h>
+//#include <sys/ioccom.h>
-
#include <stdint.h>
#include <sys/ioccom.h>
+#ifdef __astral__
+#define _IOC(dir,type,nr,size) (((dir)<<30)|((size)<<16)|((type)<<8)|(nr))
+#define _IO(type,nr) _IOC(0,(type),(nr),0)