mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 18:17:14 +08:00
29 lines
851 B
Diff
29 lines
851 B
Diff
From 12af8a575d1518d40416f83195049157c3a062a5 Mon Sep 17 00:00:00 2001
|
|
From: Chris Wilson <chris@chris-wilson.co.uk>
|
|
Date: Tue, 24 Feb 2015 15:25:40 +0000
|
|
Subject: sna: udev integration depends on fstat and sys/stat.h
|
|
|
|
src/sna/sna_driver.c: In function 'sna_handle_uevents':
|
|
src/sna/sna_driver.c:759:2: error: implicit declaration of function 'fstat' [-Werror=implicit-function-declaration]
|
|
|
|
Also take the opportunity to include udev support in the configure
|
|
summary.
|
|
|
|
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
|
|
|
|
diff --git a/src/sna/sna_driver.c b/src/sna/sna_driver.c
|
|
index 8c0d0b5..bc20ef0 100644
|
|
--- a/src/sna/sna_driver.c
|
|
+++ b/src/sna/sna_driver.c
|
|
@@ -740,6 +740,8 @@ sna_wakeup_handler(WAKEUPHANDLER_ARGS_DECL)
|
|
}
|
|
|
|
#if HAVE_UDEV
|
|
+#include <sys/stat.h>
|
|
+
|
|
static void
|
|
sna_handle_uevents(int fd, void *closure)
|
|
{
|
|
--
|
|
cgit v0.10.2
|