fixed DJGPP build, broken due to the PCI commit earlier today
authorJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 15 May 2022 19:22:04 +0000 (22:22 +0300)
committerJohn Tsiombikas <nuclear@member.fsf.org>
Sun, 15 May 2022 19:22:04 +0000 (22:22 +0300)
src/dos/dosutil.h
src/dos/pci.c

index 71af365..4e4c8c3 100644 (file)
@@ -9,11 +9,11 @@
 
 #define outp(p, v)     outportb(p, v)
 #define outpw(p, v)    outportw(p, v)
-#define outpd(p, v)    outportd(p, v)
+#define outpd(p, v)    outportl(p, v)
 
 #define inp(p)         inportb(p)
 #define inpw(p)                inportw(p)
-#define inpd(p)                inportd(p)
+#define inpd(p)                inportl(p)
 #endif
 
 #endif /* DOSUTIL_H_ */
index d3a1e7d..19a2e4d 100644 (file)
@@ -19,7 +19,7 @@ along with this program.  If not, see <https://www.gnu.org/licenses/>.
 #include <stdlib.h>
 #include <string.h>
 #include <conio.h>
-#include <i86.h>
+#include "dosutil.h"
 #include "inttypes.h"
 #include "pci.h"
 #include "cdpmi.h"