aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts/lynx.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/hosts/lynx.h')
-rw-r--r--bfd/hosts/lynx.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/bfd/hosts/lynx.h b/bfd/hosts/lynx.h
new file mode 100644
index 0000000..737c9bd
--- /dev/null
+++ b/bfd/hosts/lynx.h
@@ -0,0 +1,36 @@
+/* Architecture independant LynxOS host support for 2.2 */
+
+#ifndef hosts_lynx_h
+#define hosts_lynx_h
+
+#include <fcntl.h>
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <ctype.h>
+#include <string.h>
+
+#include <sys/conf.h>
+#include <sys/kernel.h>
+#include <sys/mem.h>
+#include <sys/signal.h>
+#include <sys/time.h>
+#include <sys/resource.h>
+#include <sys/itimer.h>
+#include <sys/file.h>
+#include <sys/proc.h>
+
+#define HOST_PAGE_SIZE NBPG
+#define HOST_TEXT_START_ADDR USRTEXT
+
+#define HOST_LYNX
+
+#include "fopen-same.h"
+
+#undef I386 /* Lynx defines this for some reason */
+
+/* Lynx has calloc, but no cfree, and gprof uses it. */
+
+#define cfree free
+
+#endif /* hosts_lynx_h */