xf86-video-intel: src/intel_device.c

Chris Wilson ickle at kemper.freedesktop.org
Sun Aug 17 23:01:27 PDT 2014


 src/intel_device.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 16b9447c5178611ce32e10620e62007ba5445918
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Mon Aug 18 07:00:48 2014 +0100

    intel: Only dump debugfs on linux
    
    Other platforms are not going to have the same debug infrastructure, nor
    even the same mount(2).
    
    Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

diff --git a/src/intel_device.c b/src/intel_device.c
index 27715c4..3924c8f 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -128,6 +128,7 @@ static int drm_get_minor(int fd)
 
 static void dump_debugfs(ScrnInfoPtr scrn, int fd, const char *name)
 {
+#if __linux__
 	char path[80];
 	int minor;
 
@@ -149,6 +150,7 @@ static void dump_debugfs(ScrnInfoPtr scrn, int fd, const char *name)
 		umount("X-debug");
 		return;
 	}
+#endif
 }
 
 static void dump_clients_info(ScrnInfoPtr scrn, int fd)


More information about the xorg-commit mailing list