Define PCONN_LOCK when threads are not used.

This commit is contained in:
Giuseppe Scrivano 2013-06-23 21:46:25 +02:00
parent 74d5c8bfb7
commit 2d1196b116
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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;