kismet: Fixed build.
authorStanislav Brabec <utx@penguin.cz>
Tue, 26 May 2009 19:07:17 +0000 (19:07 +0000)
committerutx@penguin.cz <utx@penguin.cz>
Tue, 26 May 2009 19:07:17 +0000 (19:07 +0000)
recipes/kismet/kismet-2007-10-R1/string_h.patch [new file with mode: 0644]
recipes/kismet/kismet_2007-10-R1.bb

diff --git a/recipes/kismet/kismet-2007-10-R1/string_h.patch b/recipes/kismet/kismet-2007-10-R1/string_h.patch
new file mode 100644 (file)
index 0000000..363664f
--- /dev/null
@@ -0,0 +1,36 @@
+Index: kismet-2007-10-R1/kismet_wrapper.cc
+===================================================================
+--- kismet-2007-10-R1.orig/kismet_wrapper.cc   2007-10-06 21:50:03.000000000 +0000
++++ kismet-2007-10-R1/kismet_wrapper.cc        2009-05-26 12:58:01.000000000 +0000
+@@ -25,6 +25,7 @@
+ #include <sys/wait.h>
+ #include <fcntl.h>
+ #include <unistd.h>
++#include <string.h>
+ #include "config.h"
+Index: kismet-2007-10-R1/ringbuf.cc
+===================================================================
+--- kismet-2007-10-R1.orig/ringbuf.cc  2005-12-11 19:14:39.000000000 +0000
++++ kismet-2007-10-R1/ringbuf.cc       2009-05-26 12:56:17.000000000 +0000
+@@ -17,6 +17,7 @@
+ */
+ #include "ringbuf.h"
++#include <string.h>
+ RingBuffer::RingBuffer(int in_size) {
+     ring_len = in_size;
+Index: kismet-2007-10-R1/util.cc
+===================================================================
+--- kismet-2007-10-R1.orig/util.cc     2006-08-28 20:37:29.000000000 +0000
++++ kismet-2007-10-R1/util.cc  2009-05-26 12:57:00.000000000 +0000
+@@ -22,6 +22,7 @@
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
++#include <string.h>
+ // We need this to make uclibc happy since they don't even have rintf...
+ #ifndef rintf
index 4786543..ac3c56f 100644 (file)
@@ -1,5 +1,6 @@
 require kismet.inc
 
-SRC_URI += "file://fix_strip.patch;patch=1"
+SRC_URI += "file://fix_strip.patch;patch=1 \
+            file://string_h.patch;patch=1"
 
 PR = "r5"