]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 1992] util/tg2 doesn't compile, needs libntp.
authorDave Hart <hart@ntp.org>
Thu, 18 Aug 2011 02:25:11 +0000 (02:25 +0000)
committerDave Hart <hart@ntp.org>
Thu, 18 Aug 2011 02:25:11 +0000 (02:25 +0000)
Patch supplied by  kukabu@gmail.com:
http://bugs.ntp.org/attachment.cgi?id=786

bk: 4e4c7807EaM2rIIvUGGaQBhokdRyKA

ChangeLog
util/Makefile.am
util/tg2.c

index 9fc9056528a794d427a433507145ed7f02d983ff..949bfab791a969df9fbd2cb1099f4f5746dc08cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+* [Bug 1992] util/tg2 doesn't compile, needs libntp.
 (4.2.7p204) 2011/08/16 Released by Harlan Stenn <stenn@ntp.org>
 * Added support for Garmin's $PGRMF sentence to NMEA driver
 * [Bug 1988] Better sntp send failed error message needed.
index 7036146430b4bb3b2ec51022e39f1c3cf20c18f3..e3480aa9284f0a8f90ee1477d534fe5bfd1def87 100644 (file)
@@ -15,7 +15,7 @@ AM_CPPFLAGS += $(CPPFLAGS_NTP)
 
 # LDADD might need RESLIB and ADJLIB
 LDADD=         ../libntp/libntp.a $(LDADD_LIBNTP) $(PTHREAD_LIBS)
-tg2_LDADD=     $(LIBM)
+tg2_LDADD=     ../libntp/libntp.a $(LIBM)
 ntp_keygen_LDADD  = version.o $(LIBOPTS_LDADD) ../libntp/libntp.a
 ntp_keygen_LDADD += $(LDADD_LIBNTP) $(PTHREAD_LIBS) $(LCRYPTO)
 ntp_keygen_SOURCES = ntp-keygen.c ntp-keygen-opts.c ntp-keygen-opts.h
index e388f20f0738d8640b16b1bf00ed768397b39489..6d52ef4fb3c1efc82a1272a833df75644a1b4ac5 100644 (file)
 # endif
 #endif
 
+#include "ntp_stdlib.h"        /* for strlcat(), strlcpy() */
+
 #include <math.h>
 #include <errno.h>
 #include <sys/types.h>
 #define        M5              (5)                             /* IRIG 1 pulse */
 #define        M8              (8)                             /* IRIG PI pulse */
 
-#define        FALSE   (0)
-#define        TRUE    (1)
-
 #define        NUL             (0)
 
 #define        SECONDS_PER_MINUTE      (60)