summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-08-18 07:00:48 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-08-18 07:00:48 +0100
commit16b9447c5178611ce32e10620e62007ba5445918 (patch)
treeff9151e3b6209c52c6a638e39b876ff8a21084d7
parentf8e632f396bf4b0473dca0516567d56a29954cf3 (diff)
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@chris-wilson.co.uk>
-rw-r--r--src/intel_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c
index 27715c41..3924c8fb 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)