--- afio.2.4.6/afio.h
+++ afio.2.4.6/afio.h
@@ -211,6 +211,9 @@
 #define	STATIC			/* Make static variables global for adb */
 #endif /* lint */
 
+typedef u_long ulong;
+#define warn afio_warn
+
 /*
  * Simple types.
  */