add including <sys/types.h> on framework
authorsunghan <sh924.chang@samsung.com>
Mon, 14 Aug 2017 08:34:36 +0000 (17:34 +0900)
committersunghan <sh924.chang@samsung.com>
Mon, 14 Aug 2017 08:34:36 +0000 (17:34 +0900)
To use size_t and ssize_t, <sys/types.h> should be included.
Indirectly including is not correct.

framework/include/iotbus/iotbus_i2c.h
framework/include/iotbus/iotbus_spi.h
framework/src/arastorage/aql_lexer.c
framework/src/arastorage/aql_parser.c
framework/src/arastorage/index_bplustree.c
framework/src/arastorage/relation.c
framework/src/arastorage/relation.h
framework/src/arastorage/storage_interface.c
framework/src/iotbus/iotbus_i2c.c
framework/src/iotbus/iotbus_spi.c

index 99a559c..526b62b 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include <stdint.h>
+#include <sys/types.h>
 
 #ifndef IOTBUS_I2C_H_
 #define IOTBUS_I2C_H_
index be39aa1..c9a6533 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include <stdint.h>
+#include <sys/types.h>
 
 #ifndef IOTBUS_SPI_H_
 #define IOTBUS_SPI_H_
index a203325..47f4ccf 100644 (file)
@@ -60,6 +60,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
 #include "aql.h"
 
 /****************************************************************************
index 1f6f50e..cf961bb 100644 (file)
@@ -59,6 +59,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <string.h>
+#include <sys/types.h>
 
 #include "attribute.h"
 #include "aql.h"
index 5753c30..ddbeccd 100644 (file)
@@ -55,6 +55,7 @@
 #include <fcntl.h>
 #include <pthread.h>
 #include <time.h>
+#include <sys/types.h>
 
 #include "result.h"
 #include "db_options.h"
index 274e2e4..6591c25 100644 (file)
@@ -58,6 +58,7 @@
 #include <string.h>
 #include <limits.h>
 #include <tinyara/config.h>
+#include <sys/types.h>
 
 #include "index.h"
 #include "lvm.h"
index f8e0488..cdd266c 100644 (file)
@@ -59,6 +59,7 @@
  ****************************************************************************/
 #include <stdint.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <arastorage/arastorage.h>
 #include "db_options.h"
 #include "list.h"
index 41e83a9..c4f29f2 100644 (file)
@@ -60,6 +60,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <sys/types.h>
 #include <tinyara/config.h>
 #include "aql.h"
 #include "db_options.h"
index 3275c46..1be6291 100644 (file)
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <fcntl.h>
 #include <sys/ioctl.h>
+#include <sys/types.h>
 #include <tinyara/i2c.h>
 #include <iotbus/iotbus_error.h>
 #include <iotbus/iotbus_i2c.h>
index ef8efd4..3580792 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <tinyara/config.h>
 #include <stdlib.h>
+#include <sys/types.h>
 #include <tinyara/spi/spi.h>
 #include <iotbus/iotbus_error.h>
 #include <iotbus/iotbus_spi.h>