diff options
author | Brian Norris <briannorris@google.com> | 2016-05-27 13:06:58 -0700 |
---|---|---|
committer | Brian Norris <briannorris@google.com> | 2016-05-27 13:06:58 -0700 |
commit | c187d9abe735d867f1dc47db5646495250394bc9 (patch) | |
tree | 0703c6a65edc316ecb72f2f272e99669625876ae /config.h.in | |
parent | 11b24fee62ec989f3781ce3783a15690a14e4715 (diff) | |
download | cups-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 'config.h.in')
-rw-r--r-- | config.h.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config.h.in b/config.h.in index e242d5611..526f91a5e 100644 --- a/config.h.in +++ b/config.h.in @@ -717,4 +717,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_ */ |