mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 23:42:34 +00:00
Corrected some configure --disable
This commit is contained in:
parent
5c41b5cff2
commit
c87979a7db
4 changed files with 14 additions and 6 deletions
4
CHANGES
4
CHANGES
|
@ -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
|
||||
|
|
4
compat.h
4
compat.h
|
@ -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 */
|
||||
|
|
4
hostan.c
4
hostan.c
|
@ -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
8
xio.h
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue