From 47db5afe4f3a598cd708630fbfeaa0573db09bd7 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 26 Jul 1992 22:30:45 +0000 Subject: Formerly make.h.~50~ --- make.h | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/make.h b/make.h index c9376ca..612b113 100644 --- a/make.h +++ b/make.h @@ -15,6 +15,11 @@ You should have received a copy of the GNU General Public License along with GNU Make; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +/* AIX requires this to be the first thing in the file. */ +#if defined (_AIX) && !defined (__GNUC__) + #pragma alloca +#endif + #define _GNU_SOURCE #include #include @@ -139,16 +144,29 @@ extern void bcopy (); extern char *malloc (), *realloc (); extern void free (); +extern void qsort (); +extern void abort (), exit (); + #endif /* Standard headers. */ #ifdef ANSI_STRING +#ifndef index #define index(s, c) strchr((s), (c)) +#endif +#ifndef rindex #define rindex(s, c) strrchr((s), (c)) +#endif +#ifndef bcmp #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n)) +#endif +#ifndef bzero #define bzero(s, n) memset ((s), 0, (n)) +#endif +#ifndef bcopy #define bcopy(s, d, n) memcpy ((d), (s), (n)) #endif +#endif /* ANSI_STRING. */ #undef ANSI_STRING @@ -240,11 +258,9 @@ extern int sigsetmask (); extern int sigblock (); #endif extern int kill (); -extern void abort (), exit (); -extern int unlink (), stat (), fstat (); -extern void qsort (); extern int atoi (); 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. */ -- cgit v1.2.3