aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-01-17 22:38:58 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-01-17 21:40:20 +0000
commita18c7c0d5c117aab65b2be1facd646ec393a1a80 (patch)
tree6b1be5081396be21c6c601d3ee79cb6a416c9ac1
parent8a6a3b2ddb2e2929c4697b31746b3f617886f157 (diff)
sample-plugin: fix build
Change-Id: I8a2c91c4148981db31317ef9d2c5c2c28942daa9 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/examples/sample-plugin/Makefile.am2
-rw-r--r--src/examples/sample-plugin/sample/sample.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/sample-plugin/Makefile.am b/src/examples/sample-plugin/Makefile.am
index e221f8c1..47642055 100644
--- a/src/examples/sample-plugin/Makefile.am
+++ b/src/examples/sample-plugin/Makefile.am
@@ -41,7 +41,7 @@ SUFFIXES = .api.h .api
| vppapigen --input - --json $@
apidir = $(prefix)/sample/
-api_DATA = sample.api.json
+api_DATA = sample/sample.api.json
noinst_HEADERS = \
sample/sample_all_api_h.h \
diff --git a/src/examples/sample-plugin/sample/sample.h b/src/examples/sample-plugin/sample/sample.h
index d268d482..6137ffff 100644
--- a/src/examples/sample-plugin/sample/sample.h
+++ b/src/examples/sample-plugin/sample/sample.h
@@ -35,6 +35,6 @@ typedef struct {
sample_main_t sample_main;
-vlib_node_registration_t sample_node;
+extern vlib_node_registration_t sample_node;
#endif /* __included_sample_h__ */