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.

23 lines
519 B

  1. --- ./apmsleep.c.orig 2001-05-11 22:30:08.000000000 +0200
  2. +++ ./apmsleep.c 2006-03-26 21:15:27.000000000 +0200
  3. @@ -42,14 +42,18 @@
  4. *
  5. */
  6. +typedef unsigned char u8;
  7. +typedef unsigned short u16;
  8. +typedef unsigned int u32;
  9. +
  10. #include <stdio.h>
  11. #include <linux/version.h>
  12. #if LINUX_VERSION_CODE > KERNEL_VERSION(2,2,0)
  13. -#include <asm/spinlock.h>
  14. +// #include <asm/spinlock.h>
  15. #endif
  16. -#include <linux/mc146818rtc.h>
  17. +#include <linux/rtc.h>
  18. #include <sys/ioctl.h>
  19. #include <sys/time.h>
  20. #include <sys/types.h>