xref: /netbsd-src/external/bsd/ntp/dist/ntpd/declcond.h (revision cdfa2a7ef92791ba9db70a584a1d904730e6fb46)
1 /*	$NetBSD: declcond.h,v 1.5 2020/05/25 20:47:25 christos Exp $	*/
2 
3 /*
4  * declcond.h - declarations conditionalized for ntpd
5  *
6  * The NTP reference implementation distribution includes two distinct
7  * declcond.h files, one in ntpd/ used only by ntpd, and another in
8  * include/ used by libntp and utilities.  This relies on the source
9  * file's directory being ahead of include/ in the include search.
10  *
11  * The ntpd variant of declcond.h declares "debug" only #ifdef DEBUG,
12  * as the --disable-debugging version of ntpd should not reference
13  * "debug".  The libntp and utilities variant always declares debug,
14  * as it is used in those codebases even without DEBUG defined.
15  */
16 #ifndef DECLCOND_H
17 #define DECLCOND_H
18 
19 #ifdef DEBUG			/* uncommented in ntpd/declcond.h */
20 extern int debug;
21 #endif				/* uncommented in ntpd/declcond.h */
22 
23 #endif	/* DECLCOND_H */
24