In modules/system/time, a bad prototype for "time" was left. There is too some problem with filno under OpenBSD. Currently, the only known OS that don't want to export fileno with c89/c99 standard, is linux, so #ifdef/#endif the prototypes only for linux. (OpenBSD seems to define them as MACROs, that led to errors)
*/
/* $Id$ */
+#include <time.h>
#include "system.h"
-long time();
-
-long
-sys_time()
+long sys_time()
{
return time((long *) 0);
}
#include "y.tab.h"
/* fileno is not C89 and can be missing sometimes. */
+#ifdef __LINUX__
int fileno(FILE *stream);
+#endif
int lineno = 1;
extern char *iname;
/* fileno is not C89 and can be missing sometimes. */
+#ifdef __LINUX__
int fileno(FILE *stream);
+#endif
int lineno=1;
extern char *filename;
char patid[128];
/* fileno is not C89 and can be missing sometimes. */
+#ifdef __LINUX__
int fileno(FILE *stream);
+#endif
int CBO_instrs[] = {
op_adi,