[PATCH xinit] need includes for PRIO_PROCESS on OpenBSD too.

Matthieu Herrb matthieu.herrb at laas.fr
Mon Nov 1 02:03:30 PDT 2010


Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 xinit.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xinit.c b/xinit.c
index 0d31637..dd4e0a2 100644
--- a/xinit.c
+++ b/xinit.c
@@ -49,10 +49,10 @@ in this Software without prior written authorization from The Open Group.
 #endif
 
 /* For PRIO_PROCESS and setpriority() */
-#ifdef __DragonFly__
+#if defined(__DragonFly__) || defined(__OpenBSD__)
 #include <sys/time.h>
 #include <sys/resource.h>
-#endif /* __DragonFly__ */
+#endif /* __DragonFly__ || __OpenBSD__ */
 
 #include <stdlib.h>
 
-- 
1.7.3.1


-- 
Matthieu Herrb


More information about the xorg-devel mailing list