diff --git a/bfd/hosts/std-host.h b/bfd/hosts/std-host.h index aeac523b62a..6e97d8a0dc4 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 , 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