xref: /netbsd-src/external/bsd/ntp/dist/include/declcond.h (revision cdfa2a7ef92791ba9db70a584a1d904730e6fb46)
1*cdfa2a7eSchristos /*	$NetBSD: declcond.h,v 1.5 2020/05/25 20:47:19 christos Exp $	*/
28585484eSchristos 
38585484eSchristos /*
48585484eSchristos  * declcond.h - declarations conditionalized for ntpd
58585484eSchristos  *
68585484eSchristos  * The NTP reference implementation distribution includes two distinct
78585484eSchristos  * declcond.h files, one in ntpd/ used only by ntpd, and another in
88585484eSchristos  * include/ used by libntp and utilities.  This relies on the source
98585484eSchristos  * file's directory being ahead of include/ in the include search.
108585484eSchristos  *
118585484eSchristos  * The ntpd variant of declcond.h declares "debug" only #ifdef DEBUG,
128585484eSchristos  * as the --disable-debugging version of ntpd should not reference
138585484eSchristos  * "debug".  The libntp and utilities variant always declares debug,
148585484eSchristos  * as it is used in those codebases even without DEBUG defined.
158585484eSchristos  */
168585484eSchristos #ifndef DECLCOND_H
178585484eSchristos #define DECLCOND_H
188585484eSchristos 
198585484eSchristos /* #ifdef DEBUG */		/* uncommented in ntpd/declcond.h */
208585484eSchristos extern int debug;
218585484eSchristos /* #endif */			/* uncommented in ntpd/declcond.h */
228585484eSchristos 
238585484eSchristos #endif	/* DECLCOND_H */
24