$OpenBSD: patch-links_h,v 1.10 2005/02/24 22:24:55 fgsch Exp $
--- links.h.orig	Sat Jan 22 17:51:55 2005
+++ links.h	Mon Feb 21 12:03:39 2005
@@ -140,6 +140,12 @@ x #endif*/
 #define longlong long
 #endif
 
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#else 
+#define intptr_t long
+#endif
+
 #include <termios.h>
 
 #include "os_depx.h"
