aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/.Sanitize1
-rw-r--r--bfd/hosts/aix4.h23
2 files changed, 24 insertions, 0 deletions
diff --git a/bfd/hosts/.Sanitize b/bfd/hosts/.Sanitize
index a1eee13..0932b43 100644
--- a/bfd/hosts/.Sanitize
+++ b/bfd/hosts/.Sanitize
@@ -24,6 +24,7 @@ Do-first:
Things-to-keep:
+aix4.h
alphaosf.h
apollo68.h
apollov68.h
diff --git a/bfd/hosts/aix4.h b/bfd/hosts/aix4.h
new file mode 100644
index 0000000..07bff7d
--- /dev/null
+++ b/bfd/hosts/aix4.h
@@ -0,0 +1,23 @@
+/* This file is *really* for an Power, PowerPC running AIX 4... */
+
+#include <stddef.h>
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <ctype.h>
+#include <string.h>
+#include <sys/file.h>
+#include <stdlib.h> /* for malloc() */
+
+/* Defining this variable turns on AIX core file and archive support. */
+#define HOST_AIX
+
+#ifndef O_ACCMODE
+#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
+#endif
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+#include "fopen-same.h"