Try to fix broken compile on openbsd.

This commit is contained in:
Neal Norwitz 2006-03-26 00:29:48 +00:00
parent 7fbd6916b6
commit 1818ed705b
1 changed files with 4 additions and 4 deletions

View 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.");