From: jwalz Date: Fri, 29 Aug 2003 16:09:13 +0000 (+0000) Subject: strerror() is ANSI X-Git-Tag: MOVE2GIT~1827 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2d294c47f8172f47dd9ffe860fd5bf0207f6f35b;p=nethack strerror() is ANSI (and not found by default on e.g. SUNOS4 and SVR2) --- diff --git a/src/files.c b/src/files.c index 32e2ab678..f093a2db9 100644 --- a/src/files.c +++ b/src/files.c @@ -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 = "";