]> granicus.if.org Git - python/commitdiff
Anonymous SF bug report #128053 point out that the #ifdef for
authorGuido van Rossum <guido@python.org>
Mon, 8 Jan 2001 17:51:55 +0000 (17:51 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 8 Jan 2001 17:51:55 +0000 (17:51 +0000)
including "tmpfile" in the posix_methods[] array is wrong -- should be
HAVE_TMPFILE, not HAVE_TMPNAM.

Modules/posixmodule.c

index 470967448a5b8b9c96416556ffc80647799a86c6..b57bc02e6f632a6bf0c8bcd3636c8b6d457d1ed3 100644 (file)
@@ -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