OSDN Git Service

Add a few missing includes
authorRon <ron@debian.org>
Fri, 26 Jun 2009 19:14:22 +0000 (04:44 +0930)
committerMike Frysinger <vapier@gentoo.org>
Mon, 6 Jul 2009 00:27:17 +0000 (20:27 -0400)
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@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
include/elf.h
libm/s_scalbn.c
librt/shm.c

index 288ffef..0da4bf7 100644 (file)
@@ -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;
index c534467..47983b0 100644 (file)
@@ -18,6 +18,7 @@
 
 #include "math.h"
 #include "math_private.h"
+#include <limits.h>
 
 static const double
 two54  = 1.80143985094819840000e+16, /* 0x43500000, 0x00000000 */
index c7c0ee4..f1ef0e7 100644 (file)
@@ -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>