Skip to content

Commit 11d7483

Browse files
libvortex-1.1:
* [fix] Small cleanups to compile Vortex Library 1.1.18 in WindowsXp32
1 parent 0eed2c2 commit 11d7483

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/vortex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
#define vortex_is_disconnected ((errno == WSAESHUTDOWN) || (errno == WSAECONNABORTED) || (errno == WSAECONNRESET))
136136
#define VORTEX_FILE_SEPARATOR "\\"
137137
#define inet_ntop vortex_win32_inet_ntop
138+
#define EADDRNOTAVAIL 125
138139

139140
/* no link support windows */
140141
#define S_ISLNK(m) (0)

src/vortex_connection.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4630,14 +4630,17 @@ const char * vortex_connection_get_host_ip (VortexConnection *
46304630
/* unix flavors */
46314631
socklen_t sin_size = sizeof (sin);
46324632
#endif
4633+
#if defined(ENABLE_VORTEX_LOG)
46334634
VortexCtx * ctx;
46344635

4636+
/* setup context */
4637+
ctx = connection->ctx;
4638+
#endif
4639+
46354640
/* check input parameters */
46364641
if (connection == NULL)
46374642
return NULL;
4638-
/* setup context */
4639-
ctx = connection->ctx;
4640-
4643+
46414644
/* acquire lock to check if host ip was defined previously */
46424645
vortex_mutex_lock (&connection->op_mutex);
46434646
if (connection->host_ip) {

0 commit comments

Comments
 (0)