OSDN Git Service

* libI77/configure.in: Remove fcntl.h check; never define
[pf3gnuchains/gcc-fork.git] / libf2c / libI77 / open.c
index 75c8971..9457ccc 100644 (file)
@@ -231,7 +231,7 @@ integer f_open(olist *a)
                (void) strcpy (buf, s);
                free (s);
 #else /* ! defined (HAVE_TEMPNAM) */
-#ifdef _POSIX_SOURCE
+#ifdef HAVE_TMPNAM
                tmpnam(buf);
 #else
                (void) strcpy(buf,"tmp.FXXXXXX");