From fc1d7255ee4bf3ffedc5a46bdc4bb945ad8c0b87 Mon Sep 17 00:00:00 2001
From: John Crispin <john@openwrt.org>
Date: Fri, 24 Aug 2012 09:58:42 +0000
Subject: [PATCH] add safethread

SVN-Revision: 33269
---
 package/openssl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/openssl/Makefile b/package/openssl/Makefile
index d95783aac9..2962c07ed2 100644
--- a/package/openssl/Makefile
+++ b/package/openssl/Makefile
@@ -105,7 +105,7 @@ define Build/Configure
 	)
 endef
 
-TARGET_CFLAGS += $(FPIC)
+TARGET_CFLAGS += $(FPIC) -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE
 
 define Build/Compile
 	# XXX: OpenSSL "make depend" will look for installed headers before its own,
-- 
2.30.2