diff mbox

xf86-video-intel build fix for OpenBSD

Message ID 201401202224.s0KMOrq1025848@glazunov.sibelius.xs4all.nl (mailing list archive)
State New, archived
Headers show

Commit Message

Mark Kettenis Jan. 20, 2014, 10:24 p.m. UTC
Commit 50a45a1cdd4d8319ba9358974d241069689591c5 introduced the use of
"struct stat" but doesn't include <sys/stat.h>.  Presumably that leaks
in trough some other header on Linux, but on OpenBSD compilation fails
because the struct isn't known.

Comments

Chris Wilson Jan. 20, 2014, 10:37 p.m. UTC | #1
On Mon, Jan 20, 2014 at 11:24:53PM +0100, Mark Kettenis wrote:
> Commit 50a45a1cdd4d8319ba9358974d241069689591c5 introduced the use of
> "struct stat" but doesn't include <sys/stat.h>.  Presumably that leaks
> in trough some other header on Linux, but on OpenBSD compilation fails
> because the struct isn't known.

Thank you, pushed.
-Chris
diff mbox

Patch

diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 8e073e2..66f5e7b 100644
--- a/src/sna/kgem.c
+++ b/src/sna/kgem.c
@@ -35,6 +35,7 @@ 
 #include <unistd.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
+#include <sys/stat.h>
 #include <time.h>
 #include <sched.h>
 #include <errno.h>