summaryrefslogtreecommitdiffstats
path: root/Modules/pcre.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-06-28 20:56:30 (GMT)
committerGuido van Rossum <guido@python.org>2000-06-28 20:56:30 (GMT)
commit40ced50cb0ceddbaab5aef006399caeb49b22919 (patch)
treea23352ce7876eb3e57e39149d4a9308121ed8645 /Modules/pcre.h
parent9cb1cabb778f2cead5788706fb05c2b05afe9243 (diff)
downloadcpython-40ced50cb0ceddbaab5aef006399caeb49b22919.zip
cpython-40ced50cb0ceddbaab5aef006399caeb49b22919.tar.gz
cpython-40ced50cb0ceddbaab5aef006399caeb49b22919.tar.bz2
Jack Jansen: Mac Carbon: don't include sys/types if we don't have it
Diffstat (limited to 'Modules/pcre.h')
-rw-r--r--Modules/pcre.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/pcre.h b/Modules/pcre.h
index 347ca72..3606823 100644
--- a/Modules/pcre.h
+++ b/Modules/pcre.h
@@ -14,7 +14,9 @@
/* Have to include stdlib.h in order to ensure that size_t is defined;
it is needed here for malloc. */
+#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
#include <stdlib.h>
/* Allow for C++ users */