diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2012-06-25 23:12:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-26 14:57:30 -0700 |
commit | bb23378c0b1c9a410d40adea74276544a00fb94e (patch) | |
tree | 027105cd6618cb66d64c290bd1c10399a1c7bcaa /drivers | |
parent | 1bcdfbcf7599a42f7aa0e41c88df178fecebc909 (diff) |
staging: iio: quell asprintf() warning, missing #includes
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/Documentation/generic_buffer.c | 3 | ||||
-rw-r--r-- | drivers/staging/iio/Documentation/iio_utils.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/iio/Documentation/generic_buffer.c b/drivers/staging/iio/Documentation/generic_buffer.c index b16c4b208ae..827e92de8e3 100644 --- a/drivers/staging/iio/Documentation/generic_buffer.c +++ b/drivers/staging/iio/Documentation/generic_buffer.c @@ -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" diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index 9c7a5aa5e2c..c0448b3e20d 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -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 |