listen: use GLib instead of utils.h

This commit is contained in:
Max Kellermann
2009-01-03 14:51:43 +01:00
parent 30f75f7f01
commit 8ebb3196a8
3 changed files with 21 additions and 20 deletions

View File

@@ -61,20 +61,6 @@ void my_usleep(long usec)
#endif
}
int ipv6Supported(void)
{
#ifdef HAVE_IPV6
int s;
s = socket(AF_INET6, SOCK_STREAM, 0);
if (s == -1)
return 0;
close(s);
return 1;
#else
return 0;
#endif
}
G_GNUC_MALLOC char *xstrdup(const char *s)
{
char *ret = strdup(s);