summaryrefslogtreecommitdiff
path: root/vcnet
diff options
context:
space:
mode:
authorBrian Norris <briannorris@google.com>2016-05-27 13:06:58 -0700
committerBrian Norris <briannorris@google.com>2016-05-27 13:06:58 -0700
commitc187d9abe735d867f1dc47db5646495250394bc9 (patch)
tree0703c6a65edc316ecb72f2f272e99669625876ae /vcnet
parent11b24fee62ec989f3781ce3783a15690a14e4715 (diff)
downloadcups-c187d9abe735d867f1dc47db5646495250394bc9.tar.gz
Factor out generic 'HAVE_ONDEMAND' macro flag
HAVE_SYSTEMD and HAVE_LAUNCHD use very similar code for on-demand launching of cupsd, and if we want to add one more (e.g., upstart) it's easier to just use a single common flag: HAVE_ONDEMAND.
Diffstat (limited to 'vcnet')
-rw-r--r--vcnet/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcnet/config.h b/vcnet/config.h
index e8e73f6b1..0f1291cc5 100644
--- a/vcnet/config.h
+++ b/vcnet/config.h
@@ -777,4 +777,10 @@ static __inline int _cups_abs(int i) { return (i < 0 ? -i : i); }
# endif /* __GNUC__ || __STDC_VERSION__ */
#endif /* !HAVE_ABS && !abs */
+#if defined(HAVE_LAUNCHD) || defined(HAVE_SYSTEMD)
+# define HAVE_ONDEMAND
+#else
+# undef HAVE_ONDEMAND
+#endif
+
#endif /* !_CUPS_CONFIG_H_ */