diff -crN ntp.orig/@make-ntpdate ntp/@make-ntpdate *** ntp.orig/@make-ntpdate Thu Jan 1 09:00:00 1970 --- ntp/@make-ntpdate Mon Feb 10 23:48:50 2003 *************** *** 0 **** --- 1,4 ---- + #! /bin/sh + + (cd libntp; make) + (cd ntpdate; make) diff -crN ntp.orig/config.h ntp/config.h *** ntp.orig/config.h Mon Feb 10 23:45:39 2003 --- ntp/config.h Mon Feb 10 23:47:09 2003 *************** *** 232,244 **** /* #undef DECL_ERRNO */ /* define if we may declare int h_errno; */ ! #define DECL_H_ERRNO 1 /* define if it's OK to declare char *sys_errlist[]; */ /* #undef CHAR_SYS_ERRLIST */ ! /* define if it's OK to declare int syscall P((int, struct timeval *, struct timeval *)); */ #define DECL_SYSCALL 1 /* define if we have syscall is buggy (Solaris 2.4) */ /* #undef SYSCALL_BUG */ --- 232,246 ---- /* #undef DECL_ERRNO */ /* define if we may declare int h_errno; */ ! /* #define DECL_H_ERRNO 1 */ ! #undef DECL_H_ERRNO 1 /* define if it's OK to declare char *sys_errlist[]; */ /* #undef CHAR_SYS_ERRLIST */ ! /* define if it's OK to declare int syscal P((int, struct timeval *, struct timeval *)); */ #define DECL_SYSCALL 1 + #undef DECL_SYSCALL /* define if we have syscall is buggy (Solaris 2.4) */ /* #undef SYSCALL_BUG */ *************** *** 539,544 **** --- 541,547 ---- /* Define if you have the clock_settime function. */ #define HAVE_CLOCK_SETTIME 1 + #undef HAVE_CLOCK_SETTIME /* Define if you have the daemon function. */ #define HAVE_DAEMON 1 *************** *** 800,805 **** --- 803,809 ---- /* Define if you have the header file. */ #define HAVE_SYS_SOCKIO_H 1 + #undef HAVE_SYS_SOCKIO_H /* Define if you have the header file. */ #define HAVE_SYS_STAT_H 1 diff -crN ntp.orig/libntp/Makefile ntp/libntp/Makefile *** ntp.orig/libntp/Makefile Mon Feb 10 23:45:37 2003 --- ntp/libntp/Makefile Mon Feb 10 23:47:52 2003 *************** *** 66,72 **** AMDEP = AMTAR = ${SHELL} /tmp/ntp/missing --run tar AWK = awk ! CC = gcc CFLAGS = -g -O2 -Wall -Wshadow -Wconversion -Wpointer-arith -Wcast-qual -Wstrict-prototypes -pipe CHUTEST = CLKTEST = --- 66,73 ---- AMDEP = AMTAR = ${SHELL} /tmp/ntp/missing --run tar AWK = awk ! #CC = gcc ! CC = /compat/linux/opt/Embedix/tools/bin/arm-linux-gcc CFLAGS = -g -O2 -Wall -Wshadow -Wconversion -Wpointer-arith -Wcast-qual -Wstrict-prototypes -pipe CHUTEST = CLKTEST = *************** *** 91,97 **** PACKAGE = ntp PATH_SH = /bin/sh PROPDELAY = ! RANLIB = ranlib RSAREF = TESTDCF = U = --- 92,98 ---- PACKAGE = ntp PATH_SH = /bin/sh PROPDELAY = ! RANLIB = /compat/linux/opt/Embedix/tools/bin/arm-linux-ranlib RSAREF = TESTDCF = U = diff -crN ntp.orig/ntpdate/Makefile ntp/ntpdate/Makefile *** ntp.orig/ntpdate/Makefile Mon Feb 10 23:45:38 2003 --- ntp/ntpdate/Makefile Mon Feb 10 23:47:26 2003 *************** *** 66,72 **** AMDEP = AMTAR = ${SHELL} /tmp/ntp/missing --run tar AWK = awk ! CC = gcc CFLAGS = -g -O2 -Wall -Wshadow -Wconversion -Wpointer-arith -Wcast-qual -Wstrict-prototypes -pipe CHUTEST = CLKTEST = --- 66,73 ---- AMDEP = AMTAR = ${SHELL} /tmp/ntp/missing --run tar AWK = awk ! #CC = gcc ! CC = /compat/linux/opt/Embedix/tools/bin/arm-linux-gcc CFLAGS = -g -O2 -Wall -Wshadow -Wconversion -Wpointer-arith -Wcast-qual -Wstrict-prototypes -pipe CHUTEST = CLKTEST = *************** *** 120,126 **** DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = ! LIBS = -lkvm ANSI2KNR = ../util/ansi2knr ntpdate_SOURCES = ntpdate.c ntpdate_OBJECTS = ntpdate$U.o --- 121,128 ---- DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. CPPFLAGS = ! ##LIBS = -lkvm ! LIBS = ANSI2KNR = ../util/ansi2knr ntpdate_SOURCES = ntpdate.c ntpdate_OBJECTS = ntpdate$U.o diff -crN ntp.orig/ntpdate/ntpdate.c ntp/ntpdate/ntpdate.c *** ntp.orig/ntpdate/ntpdate.c Fri Jan 28 23:53:46 2000 --- ntp/ntpdate/ntpdate.c Mon Feb 10 23:47:32 2003 *************** *** 1651,1657 **** DWORD err; #endif /* SYS_WINNT */ ! cc = sendto(fd, (char *)pkt, len, 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in)); #ifndef SYS_WINNT if (cc == -1) { --- 1651,1657 ---- DWORD err; #endif /* SYS_WINNT */ ! cc = sendto(fd, (char *)pkt, (size_t)len, 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in)); #ifndef SYS_WINNT if (cc == -1) {