From 78311814106702df2c9ad805140ef6b886d55e0f Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 12 Apr 1993 20:51:32 +0000 Subject: [PATCH] Formerly make.h.~67~ --- make.h | 61 +++++++++++++++++++++++++------------------------------------ 1 file changed, 25 insertions(+), 36 deletions(-) diff --git a/make.h b/make.h index 89f0c09..d1a3a69 100644 --- a/make.h +++ b/make.h @@ -133,38 +133,16 @@ extern unsigned int get_path_max (); #define ANSI_STRING #else /* No standard headers. */ -#ifdef USG - +#ifdef HAVE_STRING_H #include -#ifdef NEED_MEMORY_H -#include -#endif #define ANSI_STRING - -#else /* Not USG. */ - -#ifdef NeXT - -#include - -#else /* Not NeXT. */ - +#else #include - -#ifndef bcmp -extern int bcmp (); -#endif -#ifndef bzero -extern void bzero (); #endif -#ifndef bcopy -extern void bcopy (); +#ifdef HAVE_MEMORY_H +#include #endif -#endif /* NeXT. */ - -#endif /* USG. */ - extern char *malloc (), *realloc (); extern void free (); @@ -174,6 +152,7 @@ extern void abort (), exit (); #endif /* Standard headers. */ #ifdef ANSI_STRING + #ifndef index #define index(s, c) strchr((s), (c)) #endif @@ -190,6 +169,19 @@ extern void abort (), exit (); #ifndef bcopy #define bcopy(s, d, n) memcpy ((d), (s), (n)) #endif + +#else /* Not ANSI_STRING. */ + +#ifndef bcmp +extern int bcmp (); +#endif +#ifndef bzero +extern void bzero (); +#endif +#ifndef bcopy +extern void bcopy (); +#endif + #endif /* ANSI_STRING. */ #undef ANSI_STRING @@ -198,13 +190,13 @@ extern void abort (), exit (); #undef alloca #define alloca(n) __builtin_alloca (n) #else /* Not GCC. */ -#if defined (sparc) || defined (HAVE_ALLOCA_H) +#ifdef HAVE_ALLOCA_H #include -#else /* Not sparc or HAVE_ALLOCA_H. */ +#else /* Not HAVE_ALLOCA_H. */ #ifndef _AIX extern char *alloca (); #endif /* Not AIX. */ -#endif /* sparc or HAVE_ALLOCA_H. */ +#endif /* HAVE_ALLOCA_H. */ #endif /* GCC. */ #ifndef iAPX286 @@ -273,13 +265,9 @@ extern void user_access (), make_access (), child_access (); #include #endif -#if defined(__GNU_LIBRARY__) || defined(POSIX) +#if !defined (__GNU_LIBRARY__) && !defined (POSIX) -#include - -#else - -#ifndef USG +#ifdef HAVE_SIGSETMASK extern int sigsetmask (); extern int sigblock (); #endif @@ -289,7 +277,8 @@ extern long int atol (); extern int unlink (), stat (), fstat (); extern int pipe (), close (), read (), write (), open (); extern long int lseek (); -#endif /* GNU C library or POSIX. */ + +#endif /* Not GNU C library or POSIX. */ #ifdef HAVE_GETCWD extern char *getcwd (); -- 2.7.4