[Python-checkins] r43316 - python/trunk/Modules/posixmodule.c
neal.norwitz
python-checkins at python.org
Sun Mar 26 01:29:49 CET 2006
Author: neal.norwitz
Date: Sun Mar 26 01:29:48 2006
New Revision: 43316
Modified:
python/trunk/Modules/posixmodule.c
Log:
Try to fix broken compile on openbsd.
Modified: python/trunk/Modules/posixmodule.c
==============================================================================
--- python/trunk/Modules/posixmodule.c (original)
+++ python/trunk/Modules/posixmodule.c Sun Mar 26 01:29:48 2006
@@ -2001,13 +2001,13 @@
}
-#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.");
More information about the Python-checkins
mailing list