patch-libteredo_maintain_c 739 B

12345678910111213141516171819
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- miredo-1.1.6.orig/libteredo/maintain.c 2009-04-13 11:15:15.000000000 +0200
  3. +++ miredo-1.1.6/libteredo/maintain.c 2009-05-10 18:21:51.000000000 +0200
  4. @@ -56,6 +56,7 @@
  5. #include "maintain.h"
  6. #include "v4global.h" // is_ipv4_global_unicast()
  7. #include "debug.h"
  8. +#define pthread_condattr_setclock( a, c ) (((c) != CLOCK_REALTIME) ? EINVAL : 0)
  9. static inline void gettime (struct timespec *now)
  10. {
  11. @@ -63,7 +64,6 @@ static inline void gettime (struct times
  12. if (clock_gettime (CLOCK_MONOTONIC, now) == 0)
  13. return;
  14. #else
  15. -# define pthread_condattr_setclock( a, c ) (((c) != CLOCK_REALTIME) ? EINVAL : 0)
  16. # ifndef CLOCK_MONOTONIC
  17. # define CLOCK_MONOTONIC CLOCK_REALTIME
  18. # endif