OSDN Git Service

Add errno includes
authorAxel Fagerstedt <axel.fagerstedt@intel.com>
Tue, 5 May 2015 08:05:40 +0000 (01:05 -0700)
committerbuildslave <sys_buildbot@intel.com>
Wed, 23 Sep 2015 14:52:56 +0000 (14:52 +0000)
The patch add errno includes.

Tracked-On: https://jira01.devtools.intel.com/browse/GMINL-18956
Change-Id: I5df3283ecedf52e36edd30c19a95d4b1fd0fb366
Reviewed-on: https://android.intel.com:443/415236

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

index 48cea22..9426d4d 100644 (file)
--- a/control.c
+++ b/control.c
@@ -34,6 +34,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 b1baeee..a914f44 100644 (file)
--- a/entry.c
+++ b/entry.c
@@ -21,6 +21,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 1837072..c43ec83 100644 (file)
@@ -29,6 +29,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 88a6b64..6ec6f64 100644 (file)
--- a/utils.c
+++ b/utils.c
@@ -25,6 +25,7 @@
 #include "common.h"
 #include "utils.h"
 
+#include <errno.h>
 
 /* Note:
  *