ntp-adjtimex.patch 670 B

123456789101112131415161718192021222324252627282930313233
  1. https://support.ntp.org/bugs/show_bug.cgi?id=769
  2. http://bugs.gentoo.org/254030
  3. --- ntp/util/tickadj.c
  4. +++ ntp/util/tickadj.c
  5. @@ -21,7 +21,8 @@
  6. # include <unistd.h>
  7. #endif /* HAVE_UNISTD_H */
  8. -#ifdef HAVE___ADJTIMEX /* Linux */
  9. +/* proper handling here has been moved to upstream ntp bugzilla */
  10. +#ifdef linux
  11. #include <sys/timex.h>
  12. struct timex txc;
  13. @@ -91,7 +92,7 @@
  14. }
  15. if (!errflg) {
  16. - if (__adjtimex(&txc) < 0)
  17. + if (adjtimex(&txc) < 0)
  18. perror("adjtimex");
  19. else if (!quiet)
  20. printf("tick = %ld\ntick_adj = %d\n",
  21. @@ -146,7 +147,7 @@
  22. #endif
  23. }
  24. - if (__adjtimex(&txc) < 0)
  25. + if (adjtimex(&txc) < 0)
  26. {
  27. perror("adjtimex");
  28. }