[git commit] Add a few missing includes

Ron ron at debian.org
Fri Jun 26 19:14:22 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=e0b6a06c8fd8d1b2022e0175cfdcf99246b1e68f
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master


elf.h needs __BYTE_ORDER, and s_scalbn.c needs {LONG,INT}_MAX.
shm.c complains about no prototypes for shm_{open,unlink} without its header.

Signed-off-by: Ron Lee <ron at debian.org>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 include/elf.h   |    1 +
 libm/s_scalbn.c |    1 +
 librt/shm.c     |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/include/elf.h b/include/elf.h
index 288ffef..0da4bf7 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -28,6 +28,7 @@ extern "C" {
 /* Standard ELF types.  */
 
 #include <stdint.h>
+#include <endian.h>
 
 /* Type for a 16-bit quantity.  */
 typedef uint16_t Elf32_Half;
diff --git a/libm/s_scalbn.c b/libm/s_scalbn.c
index c534467..47983b0 100644
--- a/libm/s_scalbn.c
+++ b/libm/s_scalbn.c
@@ -18,6 +18,7 @@
 
 #include "math.h"
 #include "math_private.h"
+#include <limits.h>
 
 static const double
 two54  = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
diff --git a/librt/shm.c b/librt/shm.c
index c7c0ee4..f1ef0e7 100644
--- a/librt/shm.c
+++ b/librt/shm.c
@@ -6,6 +6,7 @@
 #include <features.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <sys/mman.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdlib.h>
-- 
1.6.3.3


More information about the uClibc-cvs mailing list