include opensslconf.h if OPENSSL_NO_* is used
diff --git a/apps/ecparam.c b/apps/ecparam.c
index 167fd1f..4e1fc83 100644
--- a/apps/ecparam.c
+++ b/apps/ecparam.c
@@ -68,6 +68,8 @@
  * Sheueling Chang Shantz and Douglas Stebila of Sun Microsystems Laboratories.
  *
  */
+
+#include <openssl/opensslconf.h>
 #ifndef OPENSSL_NO_EC
 #include <assert.h>
 #include <stdio.h>