shithub: drawterm

Download patch

ref: fe1e2947710aca3e27730081e5dfa59ea62764f1
parent: b4d00e3be37d68ea5976a23ee15d1d35c8ffa89a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jan 15 15:51:30 EST 2017

win32: fix seconds()

--- a/include/user.h	Sun Jan 15 13:02:22 2017
+++ b/include/user.h	Sun Jan 15 15:51:30 2017
@@ -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	Sun Jan 15 13:02:22 2017
+++ b/kern/win32.c	Sun Jan 15 15:51:30 2017
@@ -141,6 +141,7 @@
 	return n;
 }
 
+#undef time
 long
 seconds(void)
 {