--- openssl-1.0.2/crypto/ec/ec_curve.c.orig	2015-01-22 16:58:32.000000000 +0200
+++ openssl-1.0.2/crypto/ec/ec_curve.c	2015-02-09 22:01:11.662241500 +0200
@@ -69,16 +69,16 @@
  *
  */
 
-#ifdef OPENSSL_FIPS
-# include <openssl/fips.h>
-#endif
-
 #include <string.h>
 #include "ec_lcl.h"
 #include <openssl/err.h>
 #include <openssl/obj_mac.h>
 #include <openssl/opensslconf.h>
 
+#ifdef OPENSSL_FIPS
+# include <openssl/fips.h>
+#endif
+
 typedef struct {
     int field_type,             /* either NID_X9_62_prime_field or
                                  * NID_X9_62_characteristic_two_field */
--- openssl-1.0.2/crypto/ec/ec_cvt.c.orig	2015-02-09 21:43:51.608753800 +0200
+++ openssl-1.0.2/crypto/ec/ec_cvt.c	2015-02-09 21:46:37.220226300 +0200
@@ -69,13 +69,13 @@
  *
  */
 
+#include <openssl/err.h>
+#include "ec_lcl.h"
+
 #ifdef OPENSSL_FIPS
 # include <openssl/fips.h>
 #endif
 
-#include <openssl/err.h>
-#include "ec_lcl.h"
-
 EC_GROUP *EC_GROUP_new_curve_GFp(const BIGNUM *p, const BIGNUM *a,
                                  const BIGNUM *b, BN_CTX *ctx)
 {
--- openssl-1.0.2/ssl/t1_lib.c.orig	2015-01-22 16:58:32.000000000 +0200
+++ openssl-1.0.2/ssl/t1_lib.c	2015-02-09 22:21:07.509640100 +0200
@@ -470,7 +470,7 @@
 # ifdef OPENSSL_FIPS
             if (FIPS_mode()) {
                 *pcurves = fips_curves_default;
-                *pcurveslen = sizeof(fips_curves_default);
+                pcurveslen = sizeof(fips_curves_default);
             } else
 # endif
             {
