[Sumover-dev] [svn commit] r4568 - vic/branches/mpeg4/net

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Wed Jan 27 16:44:10 GMT 2010


Author: piers
Date: Wed Jan 27 16:44:10 2010
New Revision: 4568

Modified:
   vic/branches/mpeg4/net/inet.c

Log:
Added #ifndef WIN32 around new herror() call - which isn't supported on Windows

Modified: vic/branches/mpeg4/net/inet.c
==============================================================================
--- vic/branches/mpeg4/net/inet.c	(original)
+++ vic/branches/mpeg4/net/inet.c	Wed Jan 27 16:44:10 2010
@@ -58,8 +58,10 @@
    }
    hp = gethostbyname(s);
    if (hp == 0){
-       herror("Failed to lookup address using gethostbyname()");
-       return (0);
+#ifndef WIN32
+	   herror("Failed to lookup address using gethostbyname()");
+#endif
+	   return (0);
    }
    return *((u_int32_t **)hp->h_addr_list)[0];
 }



More information about the Sumover-dev mailing list