--- isapnptools-1.27/include/isapnp/iopl.h.orig	2001-05-15 17:37:05.000000000 -0300
+++ isapnptools-1.27/include/isapnp/iopl.h	2020-09-04 20:16:25.018829194 -0300
@@ -58,7 +58,7 @@
 #    ifdef _AXP_
 #       include <sys/io.h>
 #    else
-#       include <asm/io.h>
+#       include <sys/io.h>
 #    endif
 #  endif	      	   /* __GLIBC__ */
 #else
--- isapnptools-1.27/src/callbacks.c.orig	2001-05-15 17:37:04.000000000 -0300
+++ isapnptools-1.27/src/callbacks.c	2020-09-04 20:16:50.906948798 -0300
@@ -49,6 +49,7 @@
 #include <isapnp/callbacks.h>
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <errno.h>
 #include <string.h>
 
--- isapnptools-1.27/src/pnp-select.c.orig	2001-05-15 17:37:04.000000000 -0300
+++ isapnptools-1.27/src/pnp-select.c	2020-09-04 20:17:23.791306819 -0300
@@ -17,6 +17,7 @@
 
 #include <isapnp/resource.h>
 #include <isapnp/pnp.h>
+#include <stddef.h>
 
 #define ASSERT(condition)	/* as nothing */
 
