]> granicus.if.org Git - python/commitdiff
Try to fix broken compile on openbsd.
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Mar 2006 00:29:48 +0000 (00:29 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 26 Mar 2006 00:29:48 +0000 (00:29 +0000)
Modules/posixmodule.c

index 8f730c7dc45ee17cb8582eb9d388941ff0a65396..abf69a98dead40dab021797cc691a428df8ea774 100644 (file)
@@ -2001,13 +2001,13 @@ posix_mkdir(PyObject *self, PyObject *args)
 }
 
 
-#ifdef HAVE_NICE
-#if defined(HAVE_BROKEN_NICE) && defined(HAVE_SYS_RESOURCE_H)
-#if defined(HAVE_GETPRIORITY) && !defined(PRIO_PROCESS)
+/* sys/resource.h is needed for at least: wait3(), wait4(), broken nice. */
+#if defined(HAVE_SYS_RESOURCE_H)
 #include <sys/resource.h>
 #endif
-#endif
 
+
+#ifdef HAVE_NICE
 PyDoc_STRVAR(posix_nice__doc__,
 "nice(inc) -> new_priority\n\n\
 Decrease the priority of process by inc and return the new priority.");