summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <mark.kettenis@xs4all.nl>2014-01-20 22:33:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2014-01-20 22:33:16 +0000
commitf7121bf733e9b02248fa0b7bb62a902622dd8f10 (patch)
treeddcf949b64c0c736bce0cd4b3779f2353c736238
parent50f6701aa5ce8be96e216a942880a8db967c7a6a (diff)
sna: build fix for OpenBSD
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.
-rw-r--r--src/sna/kgem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c
index 8e073e21..66f5e7b9 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>