From: Neal Norwitz Date: Sun, 26 Mar 2006 00:29:48 +0000 (+0000) Subject: Try to fix broken compile on openbsd. X-Git-Tag: v2.5a0~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1818ed705bcd295fc903d835745d04f2814a8d95;p=python Try to fix broken compile on openbsd. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8f730c7dc4..abf69a98de 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 #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.");