aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-09-14 04:15:23 +0000
committerJohn Gilmore <gnu@cygnus>1993-09-14 04:15:23 +0000
commitf26a0e9bcfc7d4228b5128e6ce9850aaa0f1d63f (patch)
tree6e2cf78455b19f3e667e5f13e3859011b66e9b56
parentb5b4294e653c033981eb8eee4f0473e520e0b5d5 (diff)
downloadgdb-f26a0e9bcfc7d4228b5128e6ce9850aaa0f1d63f.zip
gdb-f26a0e9bcfc7d4228b5128e6ce9850aaa0f1d63f.tar.gz
gdb-f26a0e9bcfc7d4228b5128e6ce9850aaa0f1d63f.tar.bz2
* hosts/std-host.h (offsetof): Define, if not already, for archive.c.
-rw-r--r--bfd/hosts/std-host.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/hosts/std-host.h b/bfd/hosts/std-host.h
index aeac523..6e97d8a 100644
--- a/bfd/hosts/std-host.h
+++ b/bfd/hosts/std-host.h
@@ -89,6 +89,11 @@ extern int unlink();
#define BYTES_IN_PRINTF_INT 4
#endif
+/* From ANSI C <stddef.h>, which we can't depend upon the existence of */
+#ifndef offsetof
+#define offsetof(type,memb) ((size_t)&(((type *)0)->memb))
+#endif
+
#include "fopen-same.h"
#define hosts_std_host_H
#endif