diff --git a/ripemd160-compress.c b/ripemd160-compress.c
index ca815fe4dbce47e2f2c0a0ed1a21926e13289530..66b25b29379a2dfdbc607ef7447ce916272e8e55 100644
--- a/ripemd160-compress.c
+++ b/ripemd160-compress.c
@@ -20,6 +20,10 @@
  * MA 02111-1307, USA.
  */
 
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include <string.h>
 
 #include "ripemd160.h"