Revert checking for AI_ADDRCONFIG.
This commit is contained in:
parent
1758e0fb82
commit
920aebac3d
|
@ -9,7 +9,6 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
#define CELL_DIGITS 3
|
||||
#define BUFFER_SIZE 999
|
||||
/*
|
||||
|
@ -127,11 +126,7 @@ void CHANNEL__OPEN(char *cobol_buffer, char *state)
|
|||
memset(&hints, 0, sizeof(hints));
|
||||
hints.ai_family = AF_UNSPEC;
|
||||
hints.ai_socktype = SOCK_STREAM;
|
||||
#ifdef AI_ADDRCONFIG
|
||||
hints.ai_flags = AI_ADDRCONFIG;
|
||||
#else
|
||||
hints.ai_flags = 0;
|
||||
#endif
|
||||
if((status = getaddrinfo(msg_buf, port, &hints, &res))) {
|
||||
channel_string_to_cobol(cobol_buffer, gai_strerror(status));
|
||||
channel_set_status(state, EBADDEST);
|
||||
|
|
Loading…
Reference in New Issue