This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR ld/4875: sha1.h:25:20: error: stdint.h: No such file or directory


There are 2 problems:

1. We should include ../bfd/bfd_stdint.h not <stdint.h> since
<stdint.h> isn't available on all hosts.
2. elf-hints-local.h should also include ../bfd/bfd_stdint.h and
use uint32_t instead of u_int32_t since u_int32_t isn't available
on all hosts.


H.J.
----
2007-08-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR ld/4875
	* elf-hints-local.h: Include ../bfd/bfd_stdint.h.  Use
	uint32_t instead of u_int32_t.

	* sha1.h: Include ../bfd/bfd_stdint.h instead of <stdint.h>.

--- ld/elf-hints-local.h.stdint	2006-04-11 03:36:26.000000000 -0700
+++ ld/elf-hints-local.h	2007-08-09 11:24:40.000000000 -0700
@@ -25,16 +25,18 @@
 #ifndef	_ELF_HINTS_H_
 #define	_ELF_HINTS_H_
 
+#include "../bfd/bfd_stdint.h"
+
 /* Hints file produced by ldconfig.  */
 struct elfhints_hdr
 {
-  u_int32_t magic;		/* Magic number.  */
-  u_int32_t version;		/* File version (1).  */
-  u_int32_t strtab;		/* Offset of string table in file.  */
-  u_int32_t strsize;		/* Size of string table.  */
-  u_int32_t dirlist;		/* Offset of directory list in string table.  */
-  u_int32_t dirlistlen;		/* strlen(dirlist).  */
-  u_int32_t spare[26];		/* Room for expansion.  */
+  uint32_t magic;		/* Magic number.  */
+  uint32_t version;		/* File version (1).  */
+  uint32_t strtab;		/* Offset of string table in file.  */
+  uint32_t strsize;		/* Size of string table.  */
+  uint32_t dirlist;		/* Offset of directory list in string table.  */
+  uint32_t dirlistlen;		/* strlen(dirlist).  */
+  uint32_t spare[26];		/* Room for expansion.  */
 };
 
 #define ELFHINTS_MAGIC	0x746e6845
--- ld/sha1.h.stdint	2007-07-21 01:55:49.000000000 -0700
+++ ld/sha1.h	2007-08-09 11:24:22.000000000 -0700
@@ -22,7 +22,7 @@
 #define SHA1_H 1
 
 #include <stdio.h>
-#include <stdint.h>
+#include "../bfd/bfd_stdint.h"
 
 /* Structure to save state of computation between the single steps.  */
 struct sha1_ctx


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]