From f19f307c3c3cf33c589ecbc745887f7099f6d550 Mon Sep 17 00:00:00 2001 From: usamir Date: Fri, 22 Jul 2016 10:07:05 +0200 Subject: [PATCH] iguana changes and m_ios moved search paths /ios to /OSlibs/ios --- iguana/iguana_peers.c | 4 ++-- iguana/m_ios | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 8104903b6..3b9cea9b7 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -408,7 +408,7 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) { while ( (result= bind(sock,(struct sockaddr*)&saddr,addrlen)) != 0 ) { - /* if ( errno == EADDRINUSE ) + if ( errno == EADDRINUSE ) { sleep(1); printf("ERROR BINDING PORT.%d. this is normal tcp timeout, unless another process is using port\n",port); @@ -421,7 +421,7 @@ int32_t iguana_socket(int32_t bindflag,char *hostname,uint16_t port) } sleep(13); //continue; - } */ + } if ( errno != ECONNRESET && errno != ENOTCONN && errno != ECONNREFUSED && errno != ETIMEDOUT && errno != EHOSTUNREACH ) { printf("%s(%s) port.%d failed: %s sock.%d. errno.%d\n",bindflag!=0?"bind":"connect",hostname,port,strerror(errno),sock,errno); diff --git a/iguana/m_ios b/iguana/m_ios index ccce1734a..76c592102 100755 --- a/iguana/m_ios +++ b/iguana/m_ios @@ -6,4 +6,4 @@ git pull echo CC=$CC -$CC -v -o ../agents/iguana -O2 *.c ../ios/lib/libssl.a ../ios/lib/libcrypto.a ../agents/libcrypto777.a -L $(xcrun --sdk iphonesimulator --show-sdk-path)/usr/lib -L ../ios/lib -lcurl -lm +$CC -v -o ../agents/iguana -O2 *.c ../OSlibs/ios/lib/libssl.a ../OSlibs/ios/lib/libcrypto.a ../agents/libcrypto777.a -L $(xcrun --sdk iphonesimulator --show-sdk-path)/usr/lib -L ../OSlibs/ios/lib -lcurl -lm