diff mbox

[1/3] build: add missing #include "compat.h"

Message ID 20170405011455.60222-2-luc.vanoostenryck@gmail.com (mailing list archive)
State Mainlined, archived
Headers show

Commit Message

Luc Van Oostenryck April 5, 2017, 1:14 a.m. UTC
The files in compat/ didnt included "compat.h" which contains
the declarations of the functions defined there.

Fix this by adding the missing #include "compat.h".

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 Makefile           | 1 +
 compat/mmap-blob.c | 1 +
 compat/strtold.c   | 1 +
 3 files changed, 3 insertions(+)
diff mbox

Patch

diff --git a/Makefile b/Makefile
index 76902b75e..e8edd95f6 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@  OS = linux
 CC = gcc
 CFLAGS = -O2 -finline-functions -fno-strict-aliasing -g
 CFLAGS += -Wall -Wwrite-strings
+CFLAGS += -I.
 LDFLAGS += -g
 LD = gcc
 AR = ar
diff --git a/compat/mmap-blob.c b/compat/mmap-blob.c
index 1cab4dead..79040c26e 100644
--- a/compat/mmap-blob.c
+++ b/compat/mmap-blob.c
@@ -1,3 +1,4 @@ 
+#include "compat.h"
 #include <sys/mman.h>
 #include <sys/types.h>
 
diff --git a/compat/strtold.c b/compat/strtold.c
index 1b6ad7d51..29e6eb73f 100644
--- a/compat/strtold.c
+++ b/compat/strtold.c
@@ -1,3 +1,4 @@ 
+#include "compat.h"
 #include <stdlib.h>
 
 long double string_to_ld(const char *nptr, char **endptr)