]> granicus.if.org Git - nethack/commitdiff
strerror() is ANSI
authorjwalz <jwalz>
Fri, 29 Aug 2003 16:09:13 +0000 (16:09 +0000)
committerjwalz <jwalz>
Fri, 29 Aug 2003 16:09:13 +0000 (16:09 +0000)
(and not found by default on e.g. SUNOS4 and SVR2)

src/files.c

index 32e2ab6789051a0435cf75a9e40132495d866e45..f093a2db95bfee6a0789886ba511e8ca4deac961 100644 (file)
@@ -1558,7 +1558,7 @@ const char *filename;
            /* e.g., problems when setuid NetHack can't search home
             * directory restricted to user */
 
-#if defined(POSIX_TYPES) || defined(BSD) || defined(SYSV)
+#if defined (NHSTDC) && !defined(NOTSTDC)
            if ((details = strerror(errno)) == 0)
 #endif
                details = "";