diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2014-11-12 16:59:16 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-12-11 19:57:19 +0300 |
commit | 8cc3903383d0022701bbdb1ca25799a9a087c265 (patch) | |
tree | 7ed31d4d1bba8da82a7a6b8721f4f747ce8f42d5 /examples | |
parent | c5d80836cd0f9fdcfb0b0dc22d94f6a51fcacacd (diff) |
examples: fix build.
- runqueue-example.c: fix include path for in-tree build.
- blobmsg-example.c: add inttypes.h for using PRIu64.
- add examples/ subdirectory to main CMakeLists.txt
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/blobmsg-example.c | 1 | ||||
-rw-r--r-- | examples/runqueue-example.c | 2 |
2 files changed, 2 insertions, 1 deletions
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 <stdio.h> +#include <inttypes.h> #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 <libubox/uloop.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> +#include "uloop.h" #include "runqueue.h" static struct runqueue q; |