Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ if(STATIC_BUILD)
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-tarantool-security-72.patch"
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-tarantool-security-94.patch"
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-fix-ubsan.patch"
COMMAND patch -d <SOURCE_DIR> -p1 -i "${PATCHES_DIR}/librdkafka-fix-centos7.patch"
)

add_library(librdkafka_static INTERFACE)
Expand Down
17 changes: 17 additions & 0 deletions patches/librdkafka-fix-centos7.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/src/rdrand.c b/src/rdrand.c
index 77d02cfc..ad388e2a 100644
--- a/src/rdrand.c
+++ b/src/rdrand.c
@@ -32,10 +32,12 @@
#include "tinycthread.h"
#include "rdmurmur2.h"
#ifndef _WIN32
+#ifdef HAVE_GETENTROPY
/* getentropy() can be present in one of these two */
#include <unistd.h>
#include <sys/random.h>
#endif
+#endif

#ifdef HAVE_OSSL_SECURE_RAND_BYTES
#include <openssl/rand.h>