test/compress: fix missing include
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 19 Apr 2019 12:03:27 +0000 (13:03 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 19 Apr 2019 21:21:13 +0000 (23:21 +0200)
Build of test_compressdev.c fails on FreeBSD due to the missing
include of unistd.h, to provide the function usleep.

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

index 8d6dbf0..1b1983e 100644 (file)
@@ -5,6 +5,7 @@
 #include <zlib.h>
 #include <math.h>
 #include <stdlib.h>
+#include <unistd.h>
 
 #include <rte_cycles.h>
 #include <rte_malloc.h>