0.17-CFLAG-DEF-fix.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. diff -ru netkit-timed-0.17/configure netkit-timed-0.17.fixed/configure
  2. --- netkit-timed-0.17/configure 2000-07-23 15:12:26.000000000 +0930
  3. +++ netkit-timed-0.17.fixed/configure 2004-08-07 09:22:47.860505136 +0930
  4. @@ -115,39 +115,6 @@
  5. echo 'no'
  6. fi
  7. -if [ x$DEBUG = x ]; then
  8. - echo -n "Checking if $CC accepts -O2... "
  9. - if (
  10. - $CC -O2 __conftest.c -o __conftest
  11. - ) >/dev/null 2>&1; then
  12. - echo 'yes'
  13. - CFLAGS="$CFLAGS -O2"
  14. - else
  15. - echo 'no'
  16. - echo -n "Checking if $CC accepts -O... "
  17. - if (
  18. - $CC -O __conftest.c -o __conftest
  19. - ) >/dev/null 2>&1; then
  20. - echo 'yes'
  21. - CFLAGS="$CFLAGS -O"
  22. - else
  23. - echo 'no'
  24. - fi
  25. - fi
  26. -
  27. -else
  28. - echo -n "Checking if $CC accepts -g... "
  29. - if (
  30. - $CC -g __conftest.c -o __conftest
  31. - ) >/dev/null 2>&1; then
  32. - echo 'yes'
  33. - CFLAGS="$CFLAGS -g"
  34. - else
  35. - echo 'no'
  36. - fi
  37. -
  38. -fi
  39. -
  40. LDFLAGS=
  41. LIBS=
  42. diff -ru netkit-timed-0.17/timed/timed/timed.c netkit-timed-0.17.fixed/timed/timed/timed.c
  43. --- netkit-timed-0.17/timed/timed/timed.c 1999-12-13 03:35:07.000000000 +0930
  44. +++ netkit-timed-0.17.fixed/timed/timed/timed.c 2004-08-07 09:26:32.299385240 +0930
  45. @@ -898,7 +898,7 @@
  46. void
  47. get_goodgroup(int force)
  48. {
  49. -# define NG_DELAY (30*60*CLK_TCK) /* 30 minutes */
  50. +# define NG_DELAY (30*60*CLOCKS_PER_SEC) /* 30 minutes */
  51. static unsigned long last_update = -NG_DELAY;
  52. unsigned long new_update;
  53. /* struct hosttbl *htp; */