summaryrefslogtreecommitdiff
path: root/package/ntp/ntp-4.2.6_p2-adjtimex.patch
blob: 40625fa18fb32b2d1a4503e2b1c5baad79a419f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
https://support.ntp.org/bugs/show_bug.cgi?id=769
http://bugs.gentoo.org/254030

--- ntp/util/tickadj.c
+++ ntp/util/tickadj.c
@@ -21,7 +21,8 @@
 # include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 
-#ifdef HAVE___ADJTIMEX		/* Linux */
+/* proper handling here has been moved to upstream ntp bugzilla */
+#ifdef linux
 
 #include <sys/timex.h>
 struct timex txc;
@@ -91,7 +92,7 @@
 	}
 
 	if (!errflg) {
-		if (__adjtimex(&txc) < 0)
+		if (adjtimex(&txc) < 0)
 			perror("adjtimex");
 		else if (!quiet)
 			printf("tick     = %ld\ntick_adj = %d\n",
@@ -146,7 +147,7 @@
 #endif
 	}
     
-	if (__adjtimex(&txc) < 0)
+	if (adjtimex(&txc) < 0)
 	{
 		perror("adjtimex");
 	}