--- test/unit/test.c
+++ test/unit/test.c
@@ -22,6 +22,7 @@
#include <sysincl.h>
#include <logging.h>
#include <localp.h>
+#include <sys/param.h> /* for MIN */
#include "test.h"