diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-22 10:43:43 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-06-22 10:43:45 +0200 |
commit | b2a859a78292175f70dac46d3999c92901fbc264 (patch) | |
tree | 9044413caa56024382f3947e2d1662a0d192707f /src/mm-context.c | |
parent | 341555504e739f7ccac11501ca874ef6b1989961 (diff) |
build: WITH_UDEV is only defined when enabled
Looks like the preprocessor doesn't choke when using #if WITH_UDEV and
it isn't defined to any value, but anyway, better explicitly say that
we're checking if it's defined or not.
Diffstat (limited to 'src/mm-context.c')
-rw-r--r-- | src/mm-context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mm-context.c b/src/mm-context.c index 370fe28c..b7d2a281 100644 --- a/src/mm-context.c +++ b/src/mm-context.c @@ -21,7 +21,7 @@ /*****************************************************************************/ /* Application context */ -#if WITH_UDEV +#if defined WITH_UDEV # define NO_AUTO_SCAN_OPTION_FLAG 0 # define NO_AUTO_SCAN_DEFAULT FALSE #else @@ -293,7 +293,7 @@ mm_context_init (gint argc, } /* Initial kernel events processing may only be used if autoscan is disabled */ -#if WITH_UDEV +#if defined WITH_UDEV if (!no_auto_scan && initial_kernel_events) { g_warning ("error: --initial-kernel-events must be used only if --no-auto-scan is also used"); exit (1); |