summaryrefslogtreecommitdiff
path: root/src/platform/tests/test-general.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-04 20:57:07 +0100
committerThomas Haller <thaller@redhat.com>2016-03-07 11:58:01 +0100
commit1a1c5fb71716614c7271d7b148c1907ea1689192 (patch)
tree4cf19b1366a1661f7be304f6f3c36fb1e233b4b6 /src/platform/tests/test-general.c
parent6165df788d58c3338e92efbcbd0514bf1e900c63 (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.c1
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"