test/iscsi: build iSCSI unit tests on FreeBSD

Change-Id: Ie640069b831eba4eada9ff0955dca41af852d3a5
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-03-29 12:53:35 -07:00
parent 6b1046f780
commit 14cc383fb0
2 changed files with 6 additions and 4 deletions

View File

@ -76,6 +76,11 @@
#define MAX_TMPBUF 1024
#ifdef __FreeBSD__
#define HAVE_SRANDOMDEV 1
#define HAVE_ARC4RANDOM 1
#endif
struct spdk_iscsi_globals g_spdk_iscsi;
/* random value generation */

View File

@ -34,10 +34,7 @@
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
DIRS-y = bdev blob blobfs env event log json jsonrpc nvme nvmf scsi ioat util
ifeq ($(OS),Linux)
DIRS-y += iscsi
endif
DIRS-y = bdev blob blobfs env event ioat iscsi json jsonrpc log nvme nvmf scsi util
.PHONY: all clean $(DIRS-y)