OSDN Git Service

Add errno includes
authorAxel Fagerstedt <axel.fagerstedt@intel.com>
Tue, 5 May 2015 08:05:40 +0000 (01:05 -0700)
committerMarkus Grape <markus.grape@intel.com>
Wed, 24 Jun 2015 12:42:05 +0000 (14:42 +0200)
Change-Id: I5df3283ecedf52e36edd30c19a95d4b1fd0fb366

control.c
entry.c
enumeration.c
utils.c

index bb67530..981c789 100644 (file)
--- a/control.c
+++ b/control.c
@@ -22,6 +22,8 @@
 #include "description.h"
 #include "filtering.h"
 #include <linux/iio/events.h>
+#include <errno.h>
+
 /* Currently active sensors count, per device */
 static int poll_sensors_per_dev[MAX_DEVICES];          /* poll-mode sensors                            */
 static int trig_sensors_per_dev[MAX_DEVICES];          /* trigger, event based                         */
diff --git a/entry.c b/entry.c
index 3a4fa34..4bd1ea4 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -9,6 +9,8 @@
 #include "description.h"
 #include "utils.h"
 
+#include <errno.h>
+
 /* This is the IIO Sensors HAL module entry points file */
 
 static int init_count;
index c8fa34a..3cdeeb8 100644 (file)
@@ -17,6 +17,8 @@
 #include "control.h"
 #include "calibration.h"
 
+#include <errno.h>
+
 /*
  * This table maps syfs entries in scan_elements directories to sensor types,
  * and will also be used to determine other sysfs names as well as the iio
diff --git a/utils.c b/utils.c
index 4dd316f..d7fb0db 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -13,6 +13,7 @@
 #include "common.h"
 #include "utils.h"
 
+#include <errno.h>
 
 /* Note:
  *