summaryrefslogtreecommitdiffstats
path: root/acconfig.h
diff options
context:
space:
mode:
authorThomas Wouters <thomas@python.org>2001-07-11 22:35:31 (GMT)
committerThomas Wouters <thomas@python.org>2001-07-11 22:35:31 (GMT)
commite38b2f1f00f46e24eaf83182799f4f515ffb410d (patch)
tree3318084926879333c95c7a3d032fa5646d4bba55 /acconfig.h
parent3230d5c96111660f9b8c6f4fc0f86c545dd94df5 (diff)
downloadcpython-e38b2f1f00f46e24eaf83182799f4f515ffb410d.zip
cpython-e38b2f1f00f46e24eaf83182799f4f515ffb410d.tar.gz
cpython-e38b2f1f00f46e24eaf83182799f4f515ffb410d.tar.bz2
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Also note that it isn't just Linux nice() that is broken: at least FreeBSD and BSDI also have this problem. os.nice() should probably just be emulated using getpriority()/setpriority(), if they are available, but I'll get to that later.
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index bee71f8..165a9bc 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -116,6 +116,9 @@
/* Define as the size of the unicode type. */
#undef Py_UNICODE_SIZE
+/* Define if nice() returns success/failure instead of the new priority. */
+#undef HAVE_BROKEN_NICE
+
/* Define if malloc(0) returns a NULL pointer */
#undef MALLOC_ZERO_RETURNS_NULL