Skip to content

Commit

Permalink
libvortex-1.1:
Browse files Browse the repository at this point in the history
* [fix] Small cleanups to compile Vortex Library 1.1.18 in WindowsXp32
  • Loading branch information
francisbrosnan committed Oct 19, 2016
1 parent 0eed2c2 commit 11d7483
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/vortex.h
Expand Up @@ -135,6 +135,7 @@
#define vortex_is_disconnected ((errno == WSAESHUTDOWN) || (errno == WSAECONNABORTED) || (errno == WSAECONNRESET))
#define VORTEX_FILE_SEPARATOR "\\"
#define inet_ntop vortex_win32_inet_ntop
#define EADDRNOTAVAIL 125

/* no link support windows */
#define S_ISLNK(m) (0)
Expand Down
9 changes: 6 additions & 3 deletions src/vortex_connection.c
Expand Up @@ -4630,14 +4630,17 @@ const char * vortex_connection_get_host_ip (VortexConnection *
/* unix flavors */
socklen_t sin_size = sizeof (sin);
#endif
#if defined(ENABLE_VORTEX_LOG)
VortexCtx * ctx;

/* setup context */
ctx = connection->ctx;
#endif

/* check input parameters */
if (connection == NULL)
return NULL;
/* setup context */
ctx = connection->ctx;


/* acquire lock to check if host ip was defined previously */
vortex_mutex_lock (&connection->op_mutex);
if (connection->host_ip) {
Expand Down

0 comments on commit 11d7483

Please sign in to comment.