mirror of
https://github.com/mirror/wget.git
synced 2025-03-14 20:00:15 +08:00
Define PCONN_LOCK when threads are not used.
This commit is contained in:
parent
74d5c8bfb7
commit
2d1196b116
@ -1,5 +1,8 @@
|
||||
2013-06-23 Giuseppe Scrivano <gscrivano@gnu.org>
|
||||
|
||||
* http.c (PCONN_LOCK) [!ENABLE_THREADS]: Define.
|
||||
(PCONN_UNLOCK) [!ENABLE_THREADS]: Likewise.
|
||||
|
||||
* http.c (gethttp): Lock access to `connect_to_host'.
|
||||
|
||||
2013-06-03 Jochen Hein <jochen@jochen.org> (tiny change)
|
||||
|
@ -1221,6 +1221,9 @@ parse_content_disposition (const char *hdr, char **filename)
|
||||
/* Whether a persistent connection is active. */
|
||||
static bool pconn_active;
|
||||
|
||||
#define PCONN_LOCK()
|
||||
#define PCONN_UNLOCK()
|
||||
|
||||
static struct {
|
||||
#else
|
||||
static pthread_mutex_t pconn_mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user