diff options
author | Thomas Haller <thaller@redhat.com> | 2016-03-04 20:57:07 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-03-07 11:58:01 +0100 |
commit | 1a1c5fb71716614c7271d7b148c1907ea1689192 (patch) | |
tree | 4cf19b1366a1661f7be304f6f3c36fb1e233b4b6 /src/platform/tests/test-general.c | |
parent | 6165df788d58c3338e92efbcbd0514bf1e900c63 (diff) |
platform: don't create udev client if udev isn't used
Inside container, where we don't use udev we don't receive
any events from udev client. Thus the client only returns
devices when iterating it initially, but no events for newly
added devices that appear later.
Thus, inside containers we don't want to create a udev client
at all.
Diffstat (limited to 'src/platform/tests/test-general.c')
-rw-r--r-- | src/platform/tests/test-general.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platform/tests/test-general.c b/src/platform/tests/test-general.c index eb5adb954..66f72fa57 100644 --- a/src/platform/tests/test-general.c +++ b/src/platform/tests/test-general.c @@ -22,6 +22,7 @@ #include <linux/rtnetlink.h> +#include "nm-platform-utils.h" #include "nm-linux-platform.h" #include "nm-test-utils.h" |