summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-01-10 07:49:38 -0500
committerAnthony G. Basile <blueness@gentoo.org>2015-01-10 07:49:38 -0500
commit8581fe66c1d2d48a54b076e66a468620e4443ccb (patch)
tree87c1ece17f8b521581f9f02b2f3ec57eb78f2322 /src
parent81ce2af261245727ee92ba1e0070571028602e12 (diff)
src/v4l_id: fix compile error
Diffstat (limited to 'src')
-rw-r--r--src/shared/hashmap.c2
-rw-r--r--src/v4l_id/Makefile.am3
-rw-r--r--src/v4l_id/v4l_id.c4
3 files changed, 8 insertions, 1 deletions
diff --git a/src/shared/hashmap.c b/src/shared/hashmap.c
index b777b4d026..9cfdc60930 100644
--- a/src/shared/hashmap.c
+++ b/src/shared/hashmap.c
@@ -1066,7 +1066,7 @@ static int hashmap_base_put_boldly(HashmapBase *h, unsigned idx,
/*
* Returns 0 if resize is not needed.
- * 1 if succesfully resized.
+ * 1 if successfully resized.
* -ENOMEM on allocation failure.
*/
static int resize_buckets(HashmapBase *h, unsigned entries_add) {
diff --git a/src/v4l_id/Makefile.am b/src/v4l_id/Makefile.am
index 074417f909..6ca3da1146 100644
--- a/src/v4l_id/Makefile.am
+++ b/src/v4l_id/Makefile.am
@@ -1,5 +1,8 @@
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+AM_CPPFLAGS = \
+ -I $(top_srcdir)/src/shared
+
udevlibexec_PROGRAMS = \
v4l_id
diff --git a/src/v4l_id/v4l_id.c b/src/v4l_id/v4l_id.c
index 0ebe434639..0e3d3003cb 100644
--- a/src/v4l_id/v4l_id.c
+++ b/src/v4l_id/v4l_id.c
@@ -13,6 +13,10 @@
* General Public License for more details:
*/
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE 1
+#endif
+
#include <stdio.h>
#include <errno.h>
#include <string.h>