$OpenBSD: patch-psys_include_p2c_p2c_h,v 1.3 2013/12/05 12:19:00 naddy Exp $
--- psys/include/p2c/p2c.h.orig	Wed Mar 12 23:47:35 2003
+++ psys/include/p2c/p2c.h	Thu Dec  5 00:11:53 2013
@@ -80,6 +80,7 @@ extern char *strdup(const char *);
 #endif
 
 #ifdef linux
+#include <limits.h>
 #include <string.h>
 #include <stdlib.h>
 #include <unistd.h>
@@ -336,6 +337,7 @@ extern Void	P_sun_argv  PP( (char *, int, int) );
 #define EndOfFile        30
 
 /* Creating temporary files */
+#define HAVE_TMPFILE
 #if (defined(BSD) || defined(NO_TMPFILE)) && !defined(HAVE_TMPFILE)
 # define tmpfile()  (fopen(tmpnam(NULL), "w+"))
 #endif
