From cfcf991b681936e65b029632339796e38dc7524c Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Fri, 10 Mar 2006 07:30:17 +0000 Subject: [PATCH] fix adjtimex patch (add missing configure part) SVN-Revision: 3340 --- .../openntpd/patches/01-adjtimex_linux.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/openwrt/package/openntpd/patches/01-adjtimex_linux.patch b/openwrt/package/openntpd/patches/01-adjtimex_linux.patch index 4841e123fa..e19f027a11 100644 --- a/openwrt/package/openntpd/patches/01-adjtimex_linux.patch +++ b/openwrt/package/openntpd/patches/01-adjtimex_linux.patch @@ -175,3 +175,33 @@ diff -urN openntpd-3.7p1.orig/openbsd-compat/port-linux.c openntpd-3.7p1/openbsd + return result; +} +#endif +diff -ruN openntpd-3.7p1-old/configure openntpd-3.7p1/configure +--- openntpd-3.7p1-old/configure 2005-05-23 13:25:42.000000000 +0200 ++++ openntpd-3.7p1/configure 2006-03-10 00:16:48.000000000 +0100 +@@ -854,6 +854,7 @@ + --with-privsep-user=user Specify privilege separation user + --with-privsep-path=path Specify privilege separation chroot path + --with-builtin-arc4random Use builtin arc4random rather than OpenSSL's ++ --with-adjtimex Use adjtimex to adjust kernel skew + --with-ssl-dir=PATH Specify path to OpenSSL installation + + Some influential environment variables: +@@ -8656,6 +8563,18 @@ + + fi; + ++ ++# Check whether --with-adjtimex or --without-adjtimex was given. ++if test "${with_adjtimex+set}" = set; then ++ withval="$with_adjtimex" ++ ++cat >>confdefs.h <<\_ACEOF ++#define USE_ADJTIMEX ++_ACEOF ++ ++ ++fi; ++ + # Search for OpenSSL if required. + if test "$ac_cv_func_arc4random" != "yes" && test "x$builtin_arc4random" != "xyes"; then + saved_CPPFLAGS="$CPPFLAGS" -- 2.30.2