Skip to content
Snippets Groups Projects
Commit 90c9175c authored by Eleni Maria Stea's avatar Eleni Maria Stea
Browse files

include <sys/types.h> in xf86drmMode when the OS is FreeBSD


<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: default avatarEleni Maria Stea <elene.mst@gmail.com>
Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
parent 085ee3e4
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,9 @@ ...@@ -38,6 +38,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>
#if HAVE_SYS_SYSCTL_H #if HAVE_SYS_SYSCTL_H
#ifdef __FreeBSD__
#include <sys/types.h>
#endif
#include <sys/sysctl.h> #include <sys/sysctl.h>
#endif #endif
#include <stdio.h> #include <stdio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment