mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.3 KiB

  1. diff -Naur chrony-1.20.orig/configure chrony-1.20/configure
  2. --- chrony-1.20.orig/configure 2003-09-22 22:53:57.000000000 +0100
  3. +++ chrony-1.20/configure 2005-04-10 09:13:06.000000000 +0100
  4. @@ -241,12 +241,6 @@
  5. EXTRA_OBJECTS="sys_linux.o wrap_adjtimex.o rtc_linux.o"
  6. SYSDEFS="-DLINUX"
  7. echo "Configuring for " $SYSTEM
  8. - if [ -r /usr/include/linux/spinlock.h ]; then
  9. - SYSDEFS="$SYSDEFS -DHAS_SPINLOCK_H"
  10. - echo "The system has <spinlock.h>, using that"
  11. - else
  12. - echo "The system does not have <spinlock.h>, using private definition for spinlock_t"
  13. - fi
  14. if [ "${MACHINE}" = "alpha" ]; then
  15. echo "Enabling -mieee"
  16. # FIXME: Should really test for GCC
  17. diff -Naur chrony-1.20.orig/rtc_linux.c chrony-1.20/rtc_linux.c
  18. --- chrony-1.20.orig/rtc_linux.c 2003-09-22 22:22:30.000000000 +0100
  19. +++ chrony-1.20/rtc_linux.c 2005-04-10 09:13:20.000000000 +0100
  20. @@ -43,13 +43,6 @@
  21. #include <sys/time.h>
  22. #include <sys/types.h>
  23. -#ifdef HAS_SPINLOCK_H
  24. -#include <linux/spinlock.h>
  25. -#else
  26. -/* Include dummy definition of spinlock_t to cope with earlier kernels. */
  27. -typedef int spinlock_t;
  28. -#endif
  29. -
  30. /* This is a complete hack since the alpha sys/io.h needs these types
  31. * but does not arrange them to be defined. This is almost certainly
  32. * not how one should do these things. -- broonie