summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/elf.h1
-rw-r--r--libm/s_scalbn.c1
-rw-r--r--librt/shm.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index 288ffef78..0da4bf7a7 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 c534467f8..47983b014 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 c7c0ee461..f1ef0e708 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>