Remove/change bad prototypes

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)
This commit is contained in:
Godzil
2013-05-17 02:08:39 +02:00
committed by Manoël Trapier
parent 0ba3023570
commit 9da790283e
4 changed files with 8 additions and 4 deletions

View File

@@ -4,12 +4,10 @@
*/
/* $Id$ */
#include <time.h>
#include "system.h"
long time();
long
sys_time()
long sys_time()
{
return time((long *) 0);
}