Skip to content

Commit 134c413

Browse files
Tor Didriksenbjornmu
authored andcommitted
Bug#20756770 MYSQL SERVER DOESN'T COMPILE AGAINST OPENSSL 1.0.1M
The #define in openssl/opensslv.h contains an extra space in 1.0.1M Fix the regexp that is used for parsing the version number. (cherry picked from commit e5f6940dfc10580117249fefaee511e44df55326)
1 parent 6b0327d commit 134c413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/ssl.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ MACRO (MYSQL_CHECK_SSL)
166166
# Encoded as MNNFFPPS: major minor fix patch status
167167
FILE(STRINGS "${OPENSSL_INCLUDE_DIR}/openssl/opensslv.h"
168168
OPENSSL_VERSION_NUMBER
169-
REGEX "^#define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
169+
REGEX "^#[ ]*define[\t ]+OPENSSL_VERSION_NUMBER[\t ]+0x[0-9].*"
170170
)
171171
STRING(REGEX REPLACE
172172
"^.*OPENSSL_VERSION_NUMBER[\t ]+0x([0-9]).*$" "\\1"

0 commit comments

Comments
 (0)