diff options
Diffstat (limited to 'recipes-support/ntp/files/tickadj.c.patch')
| -rw-r--r-- | recipes-support/ntp/files/tickadj.c.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/recipes-support/ntp/files/tickadj.c.patch b/recipes-support/ntp/files/tickadj.c.patch new file mode 100644 index 0000000000..9ef9de9e1f --- /dev/null +++ b/recipes-support/ntp/files/tickadj.c.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Index: ntp-4.2.2p3-r0/ntp-4.2.2p3/util/tickadj.c | ||
| 2 | =================================================================== | ||
| 3 | --- ntp-4.2.2p3/util/tickadj.c 2004-02-25 06:58:33.000000000 +0100 | ||
| 4 | +++ ntp-4.2.2p3/util/tickadj.c 2007-07-07 01:00:54.000000000 +0200 | ||
| 5 | @@ -21,7 +21,8 @@ | ||
| 6 | # include <unistd.h> | ||
| 7 | #endif /* HAVE_UNISTD_H */ | ||
| 8 | |||
| 9 | -#ifdef HAVE___ADJTIMEX /* Linux */ | ||
| 10 | +/* proper handling here has been moved to upstream ntp bugzilla */ | ||
| 11 | +#ifdef linux | ||
| 12 | |||
| 13 | #include <sys/timex.h> | ||
| 14 | struct timex txc; | ||
| 15 | @@ -91,7 +92,7 @@ | ||
| 16 | } | ||
| 17 | |||
| 18 | if (!errflg) { | ||
| 19 | - if (__adjtimex(&txc) < 0) | ||
| 20 | + if (adjtimex(&txc) < 0) | ||
| 21 | perror("adjtimex"); | ||
| 22 | else if (!quiet) | ||
| 23 | printf("tick = %ld\ntick_adj = %d\n", | ||
| 24 | @@ -146,7 +147,7 @@ | ||
| 25 | #endif | ||
| 26 | } | ||
| 27 | |||
| 28 | - if (__adjtimex(&txc) < 0) | ||
| 29 | + if (adjtimex(&txc) < 0) | ||
| 30 | { | ||
| 31 | perror("adjtimex"); | ||
| 32 | } | ||
