projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
085ee3e
)
include <sys/types.h> in xf86drmMode when the OS is FreeBSD
author
Eleni Maria Stea
<elene.mst@gmail.com>
Mon, 7 Jun 2021 07:19:18 +0000
(10:19 +0300)
committer
Eleni Maria Stea
<elene.mst@gmail.com>
Sun, 20 Jun 2021 06:20:08 +0000
(09:20 +0300)
<sys/types.h> need to be included in xf86drmMode.c for type u_int in
<sys/sysctl.h> (that is included when OS is FreeBSD) to be recognized.
Signed-off-by: Eleni Maria Stea <elene.mst@gmail.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
xf86drmMode.c
patch
|
blob
|
history
diff --git
a/xf86drmMode.c
b/xf86drmMode.c
index
c3920b9
..
0106954
100644
(file)
--- a/
xf86drmMode.c
+++ b/
xf86drmMode.c
@@
-38,6
+38,9
@@
#include <stdlib.h>
#include <sys/ioctl.h>
#if HAVE_SYS_SYSCTL_H
+#ifdef __FreeBSD__
+#include <sys/types.h>
+#endif
#include <sys/sysctl.h>
#endif
#include <stdio.h>