From 4ccca7260da74d8f9a238a79c03da440831bd33e Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Tue, 5 Jan 2010 13:13:02 +0100 Subject: [PATCH] Fix undefined MOD_NANO With gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) I get this error: ntp_loopfilter.c: In function 'local_clock': ntp_loopfilter.c:571: error: 'MOD_NANO' undeclared (first use in this function) ntp_loopfilter.c:571: error: (Each undeclared identifier is reported only once ntp_loopfilter.c:571: error: for each function it appears in.) ntp_loopfilter.c: In function 'loop_config': ntp_loopfilter.c:896: error: 'MOD_NANO' undeclared (first use in this function) make[4]: *** [ntp_loopfilter.o] Error 1 Fix it by chaning MOD_NANO to STA_NANO. This may be related to some specific toolchains, due to some defines. I use the Codesourcery Sourcery G++ Lite 2009q3-67 toolchain. Signed-off-by: Alexander Stein Signed-off-by: Marc Kleine-Budde --- #mkl: ported to ntp-4.2.6 ntpd/ntp_loopfilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: ntp-4.2.6/ntpd/ntp_loopfilter.c =================================================================== --- ntp-4.2.6.orig/ntpd/ntp_loopfilter.c +++ ntp-4.2.6/ntpd/ntp_loopfilter.c @@ -517,7 +517,7 @@ local_clock( ntv.modes = MOD_STATUS; } else { #ifdef STA_NANO - ntv.modes = MOD_BITS | MOD_NANO; + ntv.modes = MOD_BITS | STA_NANO; #else /* STA_NANO */ ntv.modes = MOD_BITS; #endif /* STA_NANO */