$OpenBSD: patch-links_h,v 1.11 2005/05/10 18:21:00 fgsch Exp $
--- links.h.orig	Thu Feb 24 13:17:58 2005
+++ links.h	Tue May 10 14:34:14 2005
@@ -154,6 +154,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"
