patch-openbsd-compat_openbsd-compat_h 546 B

123456789101112131415161718
  1. $Id$
  2. part of the "adjtime-linux" patch
  3. --- openntpd-3.9p1.orig/openbsd-compat/openbsd-compat.h 2006-05-14 05:29:19.000000000 +0000
  4. +++ openntpd-3.9p1/openbsd-compat/openbsd-compat.h 2007-01-28 20:49:48.000000000 +0000
  5. @@ -46,6 +46,11 @@ int asprintf(char **, const char *,
  6. __attribute__((__format__ (printf, 2, 3)));
  7. #endif
  8. +#ifdef USE_ADJTIMEX
  9. +# include <sys/time.h>
  10. +int _compat_adjtime(const struct timeval *, struct timeval *);
  11. +#endif
  12. +
  13. #ifndef HAVE_INET_PTON
  14. int inet_pton(int, const char *, void *);
  15. #endif