From: Dominique Leuenberger <[email protected]>

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

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to