summaryrefslogtreecommitdiff
path: root/tools/intel_l3_parity.c
diff options
context:
space:
mode:
authorBen Widawsky <benjamin.widawsky@intel.com>2013-09-23 13:46:06 -0700
committerBen Widawsky <benjamin.widawsky@intel.com>2013-09-23 13:46:06 -0700
commit88ad6d7be8ab5741b7019a535952145c96577c9c (patch)
tree72604c9150d07731b3c67fee08c126d19d419497 /tools/intel_l3_parity.c
parent6020b951dff9584b9cfdb6819bdb1f6b0293db70 (diff)
intel_l3_parity: Make compilation possible without udev
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Diffstat (limited to 'tools/intel_l3_parity.c')
-rw-r--r--tools/intel_l3_parity.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/intel_l3_parity.c b/tools/intel_l3_parity.c
index ead8fb57..79e59104 100644
--- 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')