isapnptools-musl.patch 959 B

12345678910111213141516171819202122232425262728293031323334
  1. --- include/isapnp/iopl.h.orig 2001-05-15 17:37:05.000000000 -0300
  2. +++ include/isapnp/iopl.h 2017-09-10 18:20:24.488248788 -0300
  3. @@ -58,7 +58,7 @@
  4. # ifdef _AXP_
  5. # include <sys/io.h>
  6. # else
  7. -# include <asm/io.h>
  8. +# include <sys/io.h>
  9. # endif
  10. # endif /* __GLIBC__ */
  11. #else
  12. --- src/callbacks.c.orig 2001-05-15 17:37:04.000000000 -0300
  13. +++ src/callbacks.c 2017-09-10 18:24:14.415258184 -0300
  14. @@ -49,6 +49,7 @@
  15. #include <isapnp/callbacks.h>
  16. #endif
  17. #include <stdio.h>
  18. +#include <stdlib.h>
  19. #include <errno.h>
  20. #include <string.h>
  21. --- src/pnp-select.c.orig 2001-05-15 17:37:04.000000000 -0300
  22. +++ src/pnp-select.c 2017-09-10 18:33:01.433279723 -0300
  23. @@ -12,8 +12,7 @@
  24. static char Id[] __attribute__((unused)) = "$Id: pnp-select.c,v 0.7 2001/04/30 21:52:40 fox Exp $";
  25. -#include <malloc.h>
  26. -/* malloc.h is needed only for declaring NULL */
  27. +#define NULL 0
  28. #include <isapnp/resource.h>
  29. #include <isapnp/pnp.h>