Commit 981732bb authored by Manuel Pégourié-Gonnard's avatar Manuel Pégourié-Gonnard
Browse files

Fix missing/misplaced #include's

parent c3e3395c
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include "polarssl/platform.h" #include "polarssl/platform.h"
#else #else
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#define polarssl_printf printf #define polarssl_printf printf
#define polarssl_malloc malloc #define polarssl_malloc malloc
#define polarssl_free free #define polarssl_free free
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#include "polarssl/platform.h" #include "polarssl/platform.h"
#else #else
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#define polarssl_printf printf #define polarssl_printf printf
#define polarssl_malloc malloc #define polarssl_malloc malloc
#define polarssl_free free #define polarssl_free free
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include "polarssl/platform.h" #include "polarssl/platform.h"
#else #else
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#define polarssl_free free #define polarssl_free free
#define polarssl_malloc malloc #define polarssl_malloc malloc
#define polarssl_snprintf snprintf #define polarssl_snprintf snprintf
......
...@@ -51,6 +51,7 @@ ...@@ -51,6 +51,7 @@
#include "polarssl/platform.h" #include "polarssl/platform.h"
#else #else
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h>
#define polarssl_free free #define polarssl_free free
#define polarssl_malloc malloc #define polarssl_malloc malloc
#define polarssl_snprintf snprintf #define polarssl_snprintf snprintf
......
...@@ -134,7 +134,8 @@ cleanup ...@@ -134,7 +134,8 @@ cleanup
CC=gcc CFLAGS=-Werror make CC=gcc CFLAGS=-Werror make
# this is meant to cath missing #define polarssl_printf etc # this is meant to cath missing #define polarssl_printf etc
msg "build: full config except platform.c" # ~ 30s # disable fsio to catch some more missing #include <stdio.h>
msg "build: full config except platform/fsio" # ~ 30s
cleanup cleanup
cp "$CONFIG_H" "$CONFIG_BAK" cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.pl full scripts/config.pl full
...@@ -142,6 +143,7 @@ scripts/config.pl unset POLARSSL_PLATFORM_C ...@@ -142,6 +143,7 @@ scripts/config.pl unset POLARSSL_PLATFORM_C
scripts/config.pl unset POLARSSL_PLATFORM_MEMORY scripts/config.pl unset POLARSSL_PLATFORM_MEMORY
scripts/config.pl unset POLARSSL_MEMORY_C scripts/config.pl unset POLARSSL_MEMORY_C
scripts/config.pl unset POLARSSL_MEMORY_BUFFER_ALLOC_C scripts/config.pl unset POLARSSL_MEMORY_BUFFER_ALLOC_C
scripts/config.pl unset POLARSSL_FS_IO
CC=gcc CFLAGS=-Werror make CC=gcc CFLAGS=-Werror make
if uname -a | grep -F x86_64 >/dev/null; then if uname -a | grep -F x86_64 >/dev/null; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment