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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 Makefile           | 1 +
 compat/mmap-blob.c | 1 +
 compat/strtold.c   | 1 +
 3 files changed, 3 insertions(+)

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)
-- 
2.12.0

--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux