mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-12 02:16:17 +00:00
intel_l3_parity: Make compilation possible without udev
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
parent
6020b951df
commit
88ad6d7be8
@ -325,6 +325,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* Daemon doesn't work like the other commands */
|
/* Daemon doesn't work like the other commands */
|
||||||
if (action == 'L') {
|
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_parity par;
|
||||||
struct l3_location loc;
|
struct l3_location loc;
|
||||||
if (daemonize) {
|
if (daemonize) {
|
||||||
@ -335,6 +339,7 @@ int main(int argc, char *argv[])
|
|||||||
assert(l3_uevent_setup(&par) == 0);
|
assert(l3_uevent_setup(&par) == 0);
|
||||||
assert(l3_listen(&par, daemonize == 1, &loc) == 0);
|
assert(l3_listen(&par, daemonize == 1, &loc) == 0);
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action == 'l')
|
if (action == 'l')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user