History

win32: fix seconds()

cinap_lenrek committed 9 years ago

Commit fe1e2941 parent b4d00e32 files · +2 −0Browse files

Unified · Split

2 files
  1. include/user.h +1 −0
  2. kern/win32.c +1 −0
include/user.h+1−0
@@ -89,6 +89,7 @@ extern int encrypt(void*, void*, int); · 88 unmodified lines
8989 extern int decrypt(void*, void*, int);
9090 extern void qlock(QLock*);
9191 extern void qunlock(QLock*);
92+extern long time(long*);
9293 extern vlong nsec(void);
9394 extern void lock(Lock*);
9495 extern void unlock(Lock*);
kern/win32.c+1−0
@@ -141,6 +141,7 @@ randomread(void *v, ulong n) · 140 unmodified lines
141141 return n;
142142 }
143143
144+#undef time
144145 long
145146 seconds(void)
146147 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t