test/compress: fix missing header include
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 25 Feb 2019 15:23:02 +0000 (15:23 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 26 Feb 2019 15:22:41 +0000 (16:22 +0100)
usleep() is defined in unistd.h, which is missing from include list
in test_compressdev.c, causing compiler errors on FreeBSD.

Fixes: b06aa643cac4 ("test/compress: add initial unit tests")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/test_compressdev.c

index e8476ed..13cf26c 100644 (file)
@@ -4,6 +4,7 @@
 #include <string.h>
 #include <zlib.h>
 #include <math.h>
+#include <unistd.h>
 
 #include <rte_cycles.h>
 #include <rte_malloc.h>