aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-11-26 16:28:12 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-11-26 16:28:12 -0500
commit0a333110f7c7228a2e2d4f57814979392df192c3 (patch)
tree8d383291be2fb7027f7131f40c908ea3fe8ba08f /compat.h
parent4575851ea331ea85946c30421541a493c6659445 (diff)
Build on Windows using mingw32.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index a318991..1fdf6d1 100644
--- a/compat.h
+++ b/compat.h
@@ -10,6 +10,16 @@ static inline void sleep(int secs)
Sleep(secs * 1000);
}
+enum {
+ PRIO_PROCESS = 0,
+};
+
+static inline int setpriority(int which, int who, int prio)
+{
+ /* FIXME - actually do something */
+ return 0;
+}
+
#endif /* WIN32 */
#endif /* __COMPAT_H__ */