Rename crypto/fips_err.c to fips_ers.c to avoid clash with other fips_err.c
authorDr. Stephen Henson <steve@openssl.org>
Thu, 3 Feb 2011 16:16:30 +0000 (16:16 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 3 Feb 2011 16:16:30 +0000 (16:16 +0000)
crypto/Makefile
crypto/fips_ers.c [new file with mode: 0644]

index 742f731db53b4c236551387325f823bbbbd9acbb..7595cb4578a9029d7ede4d96db5f4a77c9ef2a04 100644 (file)
@@ -34,8 +34,8 @@ GENERAL=Makefile README crypto-lib.com install.com
 
 LIB= $(TOP)/libcrypto.a
 SHARED_LIB= libcrypto$(SHLIB_EXT)
-LIBSRC=        cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c ebcdic.c uid.c o_time.c o_str.c o_dir.c thr_id.c lock.c fips_err.c
-LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o ebcdic.o uid.o o_time.o o_str.o o_dir.o thr_id.o lock.o fips_err.o $(CPUID_OBJ)
+LIBSRC=        cryptlib.c mem.c mem_clr.c mem_dbg.c cversion.c ex_data.c cpt_err.c ebcdic.c uid.c o_time.c o_str.c o_dir.c thr_id.c lock.c fips_ers.c
+LIBOBJ= cryptlib.o mem.o mem_dbg.o cversion.o ex_data.o cpt_err.o ebcdic.o uid.o o_time.o o_str.o o_dir.o thr_id.o lock.o fips_ers.o $(CPUID_OBJ)
 
 SRC= $(LIBSRC)
 
diff --git a/crypto/fips_ers.c b/crypto/fips_ers.c
new file mode 100644 (file)
index 0000000..09f1174
--- /dev/null
@@ -0,0 +1,7 @@
+#include <openssl/opensslconf.h>
+
+#ifdef OPENSSL_FIPS
+# include "fips_err.h"
+#else
+static void *dummy=&dummy;
+#endif