* gas/config/tc-avr.c: Change ISA for devices with USB support to
[external/binutils.git] / libiberty / mkstemps.c
index 093b67a..a0e68a7 100644 (file)
@@ -127,7 +127,11 @@ mkstemps (char *pattern, int suffix_len)
       if (fd >= 0)
        /* The file does not exist.  */
        return fd;
-      if (errno != EEXIST)
+      if (errno != EEXIST
+#ifdef EISDIR
+         && errno != EISDIR
+#endif
+        )
        /* Fatal error (EPERM, ENOSPC etc).  Doesn't make sense to loop.  */
        break;