aboutsummaryrefslogtreecommitdiff
path: root/bfd/hosts
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1993-05-01 00:57:03 +0000
committerStu Grossman <grossman@cygnus>1993-05-01 00:57:03 +0000
commitd325e28cfd6281aa03629ebe2e33dd5cd77738ff (patch)
treec82b0403839b1a45c5ac4c944b30be661fe34632 /bfd/hosts
parent24725cfeebe1cfb1942fcf3ec698a86138441fee (diff)
downloadfsf-binutils-gdb-d325e28cfd6281aa03629ebe2e33dd5cd77738ff.zip
fsf-binutils-gdb-d325e28cfd6281aa03629ebe2e33dd5cd77738ff.tar.gz
fsf-binutils-gdb-d325e28cfd6281aa03629ebe2e33dd5cd77738ff.tar.bz2
* The following patches are from Jeffrey Law <law@cs.utah.edu>.
* hppa.c (hppa_core_file_p): Provide a temporary dummy routine for HOST_HPPABSD. * bfd/hosts/hppabsd.h: Fix declarations of malloc and free. * bfd/libhppa.h: Include sysdep here. Conditionalize includes based on HOST_HPPAHPUX or HOST_HPPABSD. Provide definitions for MAXCOMLEN and _PA_RISC_ID suitable for BSD.
Diffstat (limited to 'bfd/hosts')
-rw-r--r--bfd/hosts/hppabsd.h9
-rw-r--r--bfd/hosts/hppahpux.h5
2 files changed, 12 insertions, 2 deletions
diff --git a/bfd/hosts/hppabsd.h b/bfd/hosts/hppabsd.h
index 8c9ef11..5f786a8 100644
--- a/bfd/hosts/hppabsd.h
+++ b/bfd/hosts/hppabsd.h
@@ -1,3 +1,6 @@
+#ifndef _HPPABSD_H
+#define _HPPABSD_H
+
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
@@ -7,8 +10,8 @@
#include <string.h>
#include <sys/file.h>
-void *malloc();
-void free();
+extern PTR EXFUN(malloc,(unsigned));
+extern void EXFUN(free, (PTR));
#define HOST_HPPABSD
@@ -46,3 +49,5 @@ typedef unsigned short uint16_type;
typedef int int32_type;
typedef unsigned int uint32_type;
#include "fopen-same.h"
+
+#endif /* _HPPABSD_H */
diff --git a/bfd/hosts/hppahpux.h b/bfd/hosts/hppahpux.h
index f58bd7e..5f5e7c3 100644
--- a/bfd/hosts/hppahpux.h
+++ b/bfd/hosts/hppahpux.h
@@ -1,3 +1,6 @@
+#ifndef _HPPAHPUX_H
+#define _HPPAHPUX_H
+
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
@@ -51,3 +54,5 @@ typedef int int32_type;
typedef unsigned int uint32_type;
#include "fopen-same.h"
+
+#endif /* _HPPAHPUX_H */