aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-10-29 23:00:12 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-10-29 23:00:12 +0000
commit9b8181460dcf4d61a75390de5b9b60e1f9426e3d (patch)
tree1eb30f6a2224dbab4447e2bf354f2253c03e0a76 /bfd
parent6906ad7f1fe5d6c0927986941d4d5e49b538df2c (diff)
downloadgdb-9b8181460dcf4d61a75390de5b9b60e1f9426e3d.zip
gdb-9b8181460dcf4d61a75390de5b9b60e1f9426e3d.tar.gz
gdb-9b8181460dcf4d61a75390de5b9b60e1f9426e3d.tar.bz2
2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
* hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is define. * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined. * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only if SCO5_CORE is defined.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog8
-rw-r--r--bfd/hpux-core.c2
-rw-r--r--bfd/osf-core.c2
-rw-r--r--bfd/sco5-core.c2
4 files changed, 14 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 22bd2a7..8644e75 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,11 @@
+2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
+
+ * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
+ define.
+ * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined.
+ * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only
+ if SCO5_CORE is defined.
+
2005-10-29 Mark Kettenis <kettenis@gnu.org>
* Makefile.am: Run "make dep-am".
diff --git a/bfd/hpux-core.c b/bfd/hpux-core.c
index e68a715..9a97531 100644
--- a/bfd/hpux-core.c
+++ b/bfd/hpux-core.c
@@ -61,7 +61,9 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
# endif
#endif
#include <signal.h>
+#ifdef HPUX_CORE
#include <machine/reg.h>
+#endif
#include <sys/user.h> /* After a.out.h */
#include <sys/file.h>
diff --git a/bfd/osf-core.c b/bfd/osf-core.c
index 1ad0a36..35aa82d 100644
--- a/bfd/osf-core.c
+++ b/bfd/osf-core.c
@@ -26,7 +26,9 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
#include "libbfd.h"
#include <sys/user.h>
+#ifdef OSF_CORE
#include <sys/core.h>
+#endif
/* forward declarations */
diff --git a/bfd/sco5-core.c b/bfd/sco5-core.c
index f09eada..d10dbfa 100644
--- a/bfd/sco5-core.c
+++ b/bfd/sco5-core.c
@@ -31,8 +31,10 @@ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
#include <signal.h>
#include <sys/user.h> /* After a.out.h */
+#ifdef SCO5_CORE
#include <sys/paccess.h>
#include <sys/region.h>
+#endif
struct sco5_core_struct
{