mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Irix portability fixes:
1. Don't define _XOPEN_SOURCE, at least with GCC. As ALWAYS, this macro undefines a lot of the symbols we need. As of libshout 2.1, this define will be moved into the "if not $GCC" category so we don't have to deal with it so often. 2. Irix defines inet_pton but not sockaddr_storage. We could fake it by using an in6 structure, but why bother? Just don't check for inet_pton unless we have struct sockaddr_storage. svn path=/trunk/m4/; revision=5087
This commit is contained in:
parent
5685b9a866
commit
a66ba595c9
@ -12,6 +12,12 @@ AC_SEARCH_LIBS([sethostent], [nsl],
|
||||
[Define if you have the sethostent function])])
|
||||
AC_SEARCH_LIBS([getnameinfo], [socket],
|
||||
[AC_DEFINE([HAVE_GETNAMEINFO], [1],
|
||||
[Define if you have the inet_pton function])])
|
||||
AC_CHECK_FUNCS([endhostent getaddrinfo inet_aton inet_pton])
|
||||
[Define if you have the getnameinfo function])])
|
||||
AC_CHECK_FUNCS([endhostent getaddrinfo inet_aton])
|
||||
|
||||
# Irix defines INET_PTON but not sockaddr_storage!
|
||||
AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family],
|
||||
[AC_CHECK_FUNCS([inet_pton])],,
|
||||
[#include <sys/types.h>
|
||||
#include <sys/socket.h>])
|
||||
])
|
||||
|
Loading…
Reference in New Issue
Block a user