|
|
|
@ -4,8 +4,9 @@
@@ -4,8 +4,9 @@
|
|
|
|
|
#ifdef WIN32 |
|
|
|
|
|
|
|
|
|
#include <windows.h> |
|
|
|
|
#include <time.h> |
|
|
|
|
|
|
|
|
|
extern int opt_priority; |
|
|
|
|
#define localtime_r(src, dst) localtime_s(dst, src) |
|
|
|
|
|
|
|
|
|
static __inline void sleep(int secs) |
|
|
|
|
{ |
|
|
|
@ -16,6 +17,8 @@ enum {
@@ -16,6 +17,8 @@ enum {
|
|
|
|
|
PRIO_PROCESS = 0, |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
extern int opt_priority; |
|
|
|
|
|
|
|
|
|
static __inline int setpriority(int which, int who, int prio) |
|
|
|
|
{ |
|
|
|
|
switch (opt_priority) { |
|
|
|
|