diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b1570c..ddd5533 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,6 +39,7 @@ INSTALL(TARGETS ubox ubox-static ) ADD_SUBDIRECTORY(lua) +ADD_SUBDIRECTORY(examples) find_library(json NAMES json-c) IF(EXISTS ${json}) diff --git a/examples/blobmsg-example.c b/examples/blobmsg-example.c index 69ddce8..01b0518 100644 --- a/examples/blobmsg-example.c +++ b/examples/blobmsg-example.c @@ -1,4 +1,5 @@ #include +#include #include "blobmsg.h" #include "blobmsg_json.h" diff --git a/examples/runqueue-example.c b/examples/runqueue-example.c index 1ae184a..13ab864 100644 --- a/examples/runqueue-example.c +++ b/examples/runqueue-example.c @@ -16,11 +16,11 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#include #include #include #include +#include "uloop.h" #include "runqueue.h" static struct runqueue q;