Fix compilation of arm-linux-gnueabi-gcc-
authorJaroslaw Pelczar <j.pelczar@samsung.com>
Tue, 29 Aug 2017 08:26:18 +0000 (10:26 +0200)
committerPiotr Marcinkiewicz <p.marcinkiew@samsung.com>
Tue, 29 Aug 2017 09:09:56 +0000 (11:09 +0200)
When compiling with Linux toolchain, there are build errors like:

math/lib_j1.c: In function ‘pone’:
math/lib_j1.c:363:2: error: unknown type name ‘double_t’; did you mean
‘double’?
  double_t z;
  ^~~~~~~~

This patch solves compilation using modern v7.2.0 toolchain.

Signed-off-by: Jaroslaw Pelczar <j.pelczar@samsung.com>
lib/libc/math/lib_j0.c
lib/libc/math/lib_j1.c

index dfc7093..98c1e02 100644 (file)
 
 #include <tinyara/compiler.h>
 #include <math.h>
+#include <sys/types.h>
 
 #include "libm.h"
 
index 437bd74..c31d9e1 100644 (file)
 
 #include <tinyara/compiler.h>
 #include <math.h>
+#include <sys/types.h>
 
 #include "libm.h"