--- a/restrict.c
+++ b/restrict.c
@@ -33,6 +33,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#if defined(APG_USE_CRACKLIB)
+#include <crack.h>
+#endif /* APG_USE_CRACKLIB */
 #include "restrict.h"
 extern struct sym smbl[94];
 /*
--- a/apg.c
+++ b/apg.c
@@ -100,6 +100,7 @@
 #else /* CLISERV */
 #if defined(APG_USE_CRACKLIB)
 #define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vkt"
+#include <crack.h>
 #else /* CRACKLIB */
 #define APG_PROGRAMM_OPTIONS "M:E:a:r:b:p:n:m:x:vt"
 #endif /* CRACKLIB */
