diff --git a/stress-crypt.c b/stress-crypt.c index e71dad185..7c87207c3 100644 --- a/stress-crypt.c +++ b/stress-crypt.c @@ -31,7 +31,8 @@ static const stress_help_t help[] = { }; #if defined(HAVE_LIB_CRYPT) && \ - defined(HAVE_CRYPT_H) + (defined(HAVE_CRYPT_H) || \ + defined(__FreeBSD__)) typedef struct { const char *prefix; diff --git a/test/test-libcrypt.c b/test/test-libcrypt.c index 85f9336d1..50d2d8960 100644 --- a/test/test-libcrypt.c +++ b/test/test-libcrypt.c @@ -21,7 +21,11 @@ #define _XOPEN_SOURCE 600 #include +#if defined(__FreeBSD__) +#include +#else #include +#endif int main(void) {