Corrected some configure --disable

This commit is contained in:
Gerhard Rieger 2015-04-01 15:48:28 +02:00
parent 5c41b5cff2
commit c87979a7db
4 changed files with 14 additions and 6 deletions

View file

@ -181,6 +181,10 @@ corrections:
to a random port instead of terminating with error.
Test: TCP4_NOPORT
configure with some combination of disable options produced config
files that failed to compile due to missing IPPROTO_TCP.
Thanks to Thierry Fournier for report and patch.
porting:
Red Hat issue 1020203: configure checks fail with some compilers.
Use case: clang

View file

@ -76,7 +76,9 @@ typedef int sig_atomic_t;
/* SOL_TCP: AIX 4.3.3 */
#ifndef SOL_TCP
# define SOL_TCP IPPROTO_TCP
# ifdef IPPROTO_TCP
# define SOL_TCP IPPROTO_TCP
# endif
#endif
/* POSIX.1 doesn't seem to know sockets */

View file

@ -37,14 +37,14 @@ int hostan(FILE *outfile) {
fprintf(outfile, "((struct diag_dgram *)0)->now-((struct diag_dgram *)0) = %u\n", (unsigned int)((char *)(&((struct diag_dgram *)0)->now)-(char *)((struct diag_dgram *)0)));
fprintf(outfile, "((struct diag_dgram *)0)->exitcode-((struct diag_dgram *)0) = %u\n", (unsigned int)((char *)(&((struct diag_dgram *)0)->exitcode)-(char *)((struct diag_dgram *)0)));
fprintf(outfile, "((struct diag_dgram *)0)->text-((struct diag_dgram *)0) = %u\n", (unsigned int)((((struct diag_dgram *)0)->text)-(char *)((struct diag_dgram *)0)));
#if _WITH_SOCKET
#if _WITH_SOCKET && (_WITH_IP4 || _WITH_IP6)
fprintf(outfile, "\nIP INTERFACES\n");
iffan(outfile);
#endif
return 0;
}
#if _WITH_SOCKET
#if _WITH_SOCKET && (_WITH_IP4 || _WITH_IP6)
static int iffan(FILE *outfile) {
/* Linux: man 7 netdevice */
/* FreeBSD, NetBSD: man 4 networking */

8
xio.h
View file

@ -1,5 +1,5 @@
/* source: xio.h */
/* Copyright Gerhard Rieger 2001-2012 */
/* Copyright Gerhard Rieger */
/* Published under the GNU General Public License V.2, see file COPYING */
#ifndef __xio_h_included
@ -394,10 +394,12 @@ typedef struct single {
char *hosts_deny_table;
#endif
} ip;
struct {
#endif /* _WITH_IP4 || _WITH_IP6 */
#if WITH_UNIX
struct {
bool tight;
} un;
#endif /* _WITH_IP4 || _WITH_IP6 */
#endif /* WITH_UNIX */
} socket;
#endif /* _WITH_SOCKET */
struct {