]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/ntpd/declcond.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / ntpd / declcond.h
1 /*
2  * declcond.h - declarations conditionalized for ntpd
3  *
4  * The NTP reference implementation distribution includes two distinct
5  * declcond.h files, one in ntpd/ used only by ntpd, and another in
6  * include/ used by libntp and utilities.  This relies on the source
7  * file's directory being ahead of include/ in the include search.
8  *
9  * The ntpd variant of declcond.h declares "debug" only #ifdef DEBUG,
10  * as the --disable-debugging version of ntpd should not reference
11  * "debug".  The libntp and utilities variant always declares debug,
12  * as it is used in those codebases even without DEBUG defined.
13  */
14 #ifndef DECLCOND_H
15 #define DECLCOND_H
16
17 #ifdef DEBUG                    /* uncommented in ntpd/declcond.h */
18 extern int debug;
19 #endif                          /* uncommented in ntpd/declcond.h */
20
21 #endif  /* DECLCOND_H */