mirror of https://github.com/python/cpython.git
Try to fix broken compile on openbsd.
This commit is contained in:
parent
7fbd6916b6
commit
1818ed705b
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue