#include <fcntl.h>
#include <errno.h>
+extern int errno; /* <errno.h> forgets to do this... */
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#define SEEK_SET 0
#define SEEK_CUR 1
-extern PROTO(PTR, malloc, (unsigned));
-extern PROTO(PTR, realloc, (PTR, unsigned));
-extern PROTO(void, free, (PTR));
+extern PTR EXFUN(malloc, (unsigned));
+extern PTR EXFUN(realloc, (PTR, unsigned));
+extern void EXFUN(free, (PTR));
#define HAVE_STRERROR
typedef unsigned short uint16_type;
typedef int int32_type;
typedef unsigned int uint32_type;
+#include "fopen-same.h"