shithub: drawterm

Download patch

ref: fe1e2947710aca3e27730081e5dfa59ea62764f1
parent: b4d00e3be37d68ea5976a23ee15d1d35c8ffa89a
author: cinap_lenrek <[email protected]>
date: Sun Jan 15 16:51:30 EST 2017

win32: fix seconds()

--- a/include/user.h
+++ b/include/user.h
@@ -89,6 +89,7 @@
 extern	int	decrypt(void*, void*, int);
 extern	void	qlock(QLock*);
 extern	void	qunlock(QLock*);
+extern	long	time(long*);
 extern	vlong	nsec(void);
 extern	void	lock(Lock*);
 extern	void	unlock(Lock*);
--- a/kern/win32.c
+++ b/kern/win32.c
@@ -141,6 +141,7 @@
 	return n;
 }
 
+#undef time
 long
 seconds(void)
 {