summaryrefslogtreecommitdiffstats
path: root/Modules/faulthandler.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:00:02 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-04 11:00:02 (GMT)
commitb244d075fbb6894385e0f3cb451471051a80473b (patch)
tree18f937c9fc4e78c34997b7d91221b5358bf4db0a /Modules/faulthandler.c
parentbf009f0bceb9057a44e30b1b397163663ec69634 (diff)
downloadcpython-b244d075fbb6894385e0f3cb451471051a80473b.zip
cpython-b244d075fbb6894385e0f3cb451471051a80473b.tar.gz
cpython-b244d075fbb6894385e0f3cb451471051a80473b.tar.bz2
Fix compilation error under Windows
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r--Modules/faulthandler.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 3002840..06f7f2e 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -610,7 +610,7 @@ file_watchdog(void *unused)
PyLockStatus st;
PY_TIMEOUT_T timeout;
- const int MAXDATA = 1024;
+#define MAXDATA 1024
char buf1[MAXDATA], buf2[MAXDATA];
char *data = buf1, *old_data = buf2;
Py_ssize_t data_len, old_data_len = -1;
@@ -667,6 +667,7 @@ file_watchdog(void *unused)
/* The only way out */
PyThread_release_lock(watchdog.running);
+#undef MAXDATA
}
static void