From: Guido van Rossum Date: Mon, 8 Jan 2001 17:51:55 +0000 (+0000) Subject: Anonymous SF bug report #128053 point out that the #ifdef for X-Git-Tag: v2.1a1~383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2ad63305117aec5b8f44d0894e2459a06326131;p=python Anonymous SF bug report #128053 point out that the #ifdef for including "tmpfile" in the posix_methods[] array is wrong -- should be HAVE_TMPFILE, not HAVE_TMPNAM. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 470967448a..b57bc02e6f 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -5357,7 +5357,7 @@ static PyMethodDef posix_methods[] = { #ifdef HAVE_STATVFS {"statvfs", posix_statvfs, METH_VARARGS, posix_statvfs__doc__}, #endif -#ifdef HAVE_TMPNAM +#ifdef HAVE_TMPFILE {"tmpfile", posix_tmpfile, METH_VARARGS, posix_tmpfile__doc__}, #endif #ifdef HAVE_TEMPNAM