summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-26 00:29:48 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-26 00:29:48 (GMT)
commit1818ed705bcd295fc903d835745d04f2814a8d95 (patch)
tree876059c48c7de5bc7c2a4c0e7ebe2f591b81e97a /Modules
parent7fbd6916b64585655271ea69f47e680013060733 (diff)
downloadcpython-1818ed705bcd295fc903d835745d04f2814a8d95.zip
cpython-1818ed705bcd295fc903d835745d04f2814a8d95.tar.gz
cpython-1818ed705bcd295fc903d835745d04f2814a8d95.tar.bz2
Try to fix broken compile on openbsd.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8f730c7..abf69a9 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -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.");