From 0dee736bb424aff4e6e513534c8e32d29f292eab Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 29 May 2009 12:01:28 +0000 Subject: [PATCH] htpdate: use adjtimex instead of the obsolete ntp_adjtime SVN-Revision: 16189 --- net/htpdate/patches/100-adjtimex.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 net/htpdate/patches/100-adjtimex.patch diff --git a/net/htpdate/patches/100-adjtimex.patch b/net/htpdate/patches/100-adjtimex.patch new file mode 100644 index 0000000000..7551885260 --- /dev/null +++ b/net/htpdate/patches/100-adjtimex.patch @@ -0,0 +1,20 @@ +--- a/htpdate.c ++++ b/htpdate.c +@@ -349,7 +349,7 @@ + + /* Read current kernel frequency */ + tmx.modes = 0; +- ntp_adjtime(&tmx); ++ adjtimex(&tmx); + + /* Calculate new frequency */ + freq = (long)(65536e6 * drift); +@@ -364,7 +364,7 @@ + + /* Become root */ + seteuid(0); +- return( ntp_adjtime(&tmx) ); ++ return( adjtimex(&tmx) ); + } + + -- 2.30.2