02-no-io_h.patch 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. Author: Fabian Greffrath <fabian@debian-unofficial.org>
  2. Author: Michael Karcher <debian@mkarcher.dialup.fu-berlin.de>
  3. Description: Not every arch has <io.h>, include <unistd.h> instead.
  4. --- unace-nonfree-2.5.orig/makefile
  5. +++ unace-nonfree-2.5/makefile
  6. @@ -17,7 +17,7 @@ SRCS = $(SRCSsl)/
  7. INCLSYSDIR = //usr/include/sys
  8. INCLDIR = //usr/include
  9. -DEFINES = -D__LINUX__ -D__unix__ -D__GCC__ -D__HAS_IO_H__
  10. +DEFINES = -D__LINUX__ -D__unix__ -D__GCC__ -U__HAS_IO_H__
  11. ifdef DEBUG
  12. LSWITCHES =
  13. --- unace-nonfree-2.5.orig/source/base/all/bufread/bufread.c
  14. +++ unace-nonfree-2.5/source/base/all/bufread/bufread.c
  15. @@ -3,6 +3,10 @@
  16. #ifdef __HAS_IO_H__
  17. #include <io.h>
  18. +#else
  19. +#ifdef __unix__
  20. + #include <unistd.h>
  21. +#endif
  22. #endif
  23. #include <string.h>
  24. --- unace-nonfree-2.5.orig/source/base/all/lfn/lfn.h
  25. +++ unace-nonfree-2.5/source/base/all/lfn/lfn.h
  26. @@ -6,6 +6,10 @@
  27. #ifdef __HAS_IO_H__
  28. #include <io.h>
  29. +#else
  30. +#ifdef __unix__
  31. + #include <unistd.h>
  32. +#endif
  33. #endif
  34. #ifdef INCL_BASE_LFN_EXCLUSIVE