mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
siege: patch out last use of CRYPTO_tread_id() in a debug message
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
COMMENT = multi-threaded HTTP benchmark and regression tester
|
||||
|
||||
DISTNAME = siege-4.1.7
|
||||
REVISION = 0
|
||||
|
||||
CATEGORIES = benchmarks www
|
||||
|
||||
@@ -20,6 +21,8 @@ LOCALSTATEDIR = ${BASELOCALSTATEDIR}/log/siege
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
FIX_CRLF_FILES = src/ssl.c
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/siege
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/urls.txt ${WRKSRC}/doc/siegerc \
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
Remove last use of CRYPTO_thread_id()
|
||||
|
||||
Index: src/ssl.c
|
||||
--- src/ssl.c.orig
|
||||
+++ src/ssl.c
|
||||
@@ -237,7 +237,7 @@ SSL_pthreads_locking_callback(int mode, int type, char
|
||||
{
|
||||
if( my.debug == 4 ){
|
||||
fprintf(
|
||||
- stderr,"thread=%4d mode=%s lock=%s %s:%d\n", (int)CRYPTO_thread_id(),
|
||||
+ stderr,"thread=%4d mode=%s lock=%s %s:%d\n", (int)pthread_self(),
|
||||
(mode&CRYPTO_LOCK)?"l":"u", (type&CRYPTO_READ)?"r":"w",file,line
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user