2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 29 Oct 2005 23:00:12 +0000 (23:00 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 29 Oct 2005 23:00:12 +0000 (23:00 +0000)
* 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.

bfd/ChangeLog
bfd/hpux-core.c
bfd/osf-core.c
bfd/sco5-core.c

index 22bd2a7..8644e75 100644 (file)
@@ -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".
index e68a715..9a97531 100644 (file)
@@ -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>
 
index 1ad0a36..35aa82d 100644 (file)
@@ -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 */
 
index f09eada..d10dbfa 100644 (file)
@@ -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
 {