summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1992-07-26 22:30:45 +0000
committerRoland McGrath <roland@redhat.com>1992-07-26 22:30:45 +0000
commit47db5afe4f3a598cd708630fbfeaa0573db09bd7 (patch)
treefdf29cbbd4cf4016f9104b3ad99b3ad567bdf17f
parent19142fcfd4afd0123021eee17f8d1f588efe83a8 (diff)
downloadgunmake-47db5afe4f3a598cd708630fbfeaa0573db09bd7.tar.gz
Formerly make.h.~50~
-rw-r--r--make.h22
1 files 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 <sys/types.h>
#include <sys/stat.h>
@@ -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. */