staging: iio: quell asprintf() warning, missing #includes
authorPeter Meerwald <pmeerw@pmeerw.net>
Mon, 25 Jun 2012 21:12:17 +0000 (23:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 21:57:30 +0000 (14:57 -0700)
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/iio/Documentation/generic_buffer.c
drivers/staging/iio/Documentation/iio_utils.h

index b16c4b208ae4ce3ebb566d0d76535ba91a6418a8..827e92de8e30a83485a334344f75bfb60ee5dfa1 100644 (file)
@@ -18,6 +18,8 @@
  *
  */
 
+#define _GNU_SOURCE
+
 #include <unistd.h>
 #include <dirent.h>
 #include <fcntl.h>
@@ -29,6 +31,7 @@
 #include <string.h>
 #include <poll.h>
 #include <endian.h>
+#include <getopt.h>
 #include <inttypes.h>
 #include "iio_utils.h"
 
index 9c7a5aa5e2c7ca4c684bf5e994251ee882c3880e..c0448b3e20dea67a803b613c12ffc7fc41490816 100644 (file)
@@ -13,6 +13,7 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <dirent.h>
+#include <errno.h>
 
 /* Made up value to limit allocation sizes */
 #define IIO_MAX_NAME_LENGTH 30