projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6020b95
)
intel_l3_parity: Make compilation possible without udev
author
Ben Widawsky
<benjamin.widawsky@intel.com>
Mon, 23 Sep 2013 20:46:06 +0000
(13:46 -0700)
committer
Ben Widawsky
<benjamin.widawsky@intel.com>
Mon, 23 Sep 2013 20:46:06 +0000
(13:46 -0700)
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
tools/intel_l3_parity.c
patch
|
blob
|
history
diff --git
a/tools/intel_l3_parity.c
b/tools/intel_l3_parity.c
index
ead8fb5
..
79e5910
100644
(file)
--- a/
tools/intel_l3_parity.c
+++ b/
tools/intel_l3_parity.c
@@
-325,6
+325,10
@@
int main(int argc, char *argv[])
/* Daemon doesn't work like the other commands */
if (action == 'L') {
+#ifndef HAVE_UDEV
+ fprintf(stderr, "Daemon requires udev support. Please reconfigure.\n");
+ exit(EXIT_FAILURE);
+#else
struct l3_parity par;
struct l3_location loc;
if (daemonize) {
@@
-335,6
+339,7
@@
int main(int argc, char *argv[])
assert(l3_uevent_setup(&par) == 0);
assert(l3_listen(&par, daemonize == 1, &loc) == 0);
exit(EXIT_SUCCESS);
+#endif
}
if (action == 'l')