From e28e01d1fe5c3874eb41131bf0525570bdbe631a Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Wed, 9 Sep 1992 15:03:09 +0000 Subject: [PATCH] Delete second declaration of errno; add fallback MAXPATHLEN for SVR0 and similar systems that lack it. --- src/file.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/file.h b/src/file.h index 25c6dcec..4313be16 100644 --- a/src/file.h +++ b/src/file.h @@ -1,6 +1,6 @@ /* * file.h - definitions for file(1) program - * @(#)$Id: file.h,v 1.11 1992/09/08 22:33:06 ian Exp $ + * @(#)$Id: file.h,v 1.12 1992/09/09 15:03:09 ian Exp $ * * Copyright (c) Ian F. Darwin, 1987. * Written by Ian F. Darwin. @@ -107,8 +107,12 @@ extern int optind; /* From getopt(3) */ extern char *optarg; #if !defined(__STDC__) || defined(sun) -extern int errno, sys_nerr; +extern int sys_nerr; extern char *sys_errlist[]; #define strerror(e) \ (((e) >= 0 && (e) < sys_nerr) ? sys_errlist[(e)] : "Unknown error") #endif + +#ifndef MAXPATHLEN +#define MAXPATHLEN 512 +#endif -- 2.40.0