[PATCH] uxa: fix missing includes for fstat
Stefan Dirsch
sndirsch at suse.de
Tue Apr 26 12:42:52 UTC 2016
From: Dominique Leuenberger <dimstar at opensuse.org>
Without these headers, we can run into build errors like:
intel_driver.c: In function 'I830HandleUEvents':
intel_driver.c:745:14: error: storage size of 's' isn't known
intel_video.c:104:39: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
{XvSettable | XvGettable, -128, 127, "XV_BRIGHTNESS"},
^
intel_driver.c:753:6: error: implicit declaration of function 'fstat' [-Werror=implicit-function-declaration]
---
src/uxa/intel_driver.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/uxa/intel_driver.c b/src/uxa/intel_driver.c
index 8f76b34..2cf5998 100644
--- a/src/uxa/intel_driver.c
+++ b/src/uxa/intel_driver.c
@@ -44,6 +44,8 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
+#include <sys/stat.h>
+#include <sys/types.h>
#include "xorg-server.h"
#include "xf86.h"
--
2.6.2
More information about the xorg-devel
mailing list