Some changes for standard C platforms, to avoid declaring errno explictly.
Such platforms should declare errno in errno.h, which is already included
in the files in question.
-----------------------------------------
win32tty: fix visible CRLF characters during lockfile error message
win32gui: you couldn't specify an alignment in defaults.nh and have it stick
+unix: don't define errno if NHSTDC
General New Features
# if (_MSC_VER >= 600)
# define SKIP_ERRNO
# endif
+#else
+# ifdef NHSTDC
+# define SKIP_ERRNO
+# endif
#endif
#ifndef SKIP_ERRNO
# ifdef _DCC
extern void NDECL(linux_mapoff);
#endif
+#ifndef NHSTDC
+extern int errno;
+#endif
+
static struct stat buf;
/* see whether we should throw away this xlock file */
(void) time(&date);
#endif
if(date - buf.st_mtime < 3L*24L*60L*60L) { /* recent */
-#ifndef NETWORK
- extern int errno;
-#endif
int lockedpid; /* should be the same size as hackpid */
if(read(fd, (genericptr_t)&lockedpid, sizeof(lockedpid)) !=
void
getlock()
{
- extern int errno;
register int i = 0, fd, c;
const char *fq_lock;