]> git.droids-corp.org - dpdk.git/blobdiff - app/test/resource.c
tile: fix build
[dpdk.git] / app / test / resource.c
index 8c42eea2b4e39a91aac70ab44928d0acdd2e093e..0e2b62cd8b12427d453c725f7fc8db39f1d181ba 100644 (file)
@@ -33,8 +33,6 @@
 
 #include <stdio.h>
 #include <string.h>
-#include <archive.h>
-#include <archive_entry.h>
 #include <errno.h>
 #include <sys/queue.h>
 
@@ -97,6 +95,10 @@ int resource_fwrite_file(const struct resource *r, const char *fname)
        return ret;
 }
 
+#ifdef RTE_APP_TEST_RESOURCE_TAR
+#include <archive.h>
+#include <archive_entry.h>
+
 static int do_copy(struct archive *r, struct archive *w)
 {
        const void *buf;
@@ -295,6 +297,8 @@ fail:
        return -1;
 }
 
+#endif /* RTE_APP_TEST_RESOURCE_TAR */
+
 void resource_register(struct resource *r)
 {
        TAILQ_INSERT_TAIL(&resource_list, r, next);