mirror of
https://github.com/status-im/miniupnp.git
synced 2025-01-14 08:24:28 +00:00
connecthostport.c: fix compilation with -DNO_GETADDRINFO
This commit is contained in:
parent
b4ed41eae8
commit
d36853118e
@ -3,7 +3,7 @@
|
|||||||
# http://miniupnp.free.fr/
|
# http://miniupnp.free.fr/
|
||||||
# http://miniupnp.tuxfamily.org/
|
# http://miniupnp.tuxfamily.org/
|
||||||
# https://github.com/miniupnp/miniupnp
|
# https://github.com/miniupnp/miniupnp
|
||||||
# (c) 2005-2016 Thomas Bernard
|
# (c) 2005-2017 Thomas Bernard
|
||||||
# to install use :
|
# to install use :
|
||||||
# $ make DESTDIR=/tmp/dummylocation install
|
# $ make DESTDIR=/tmp/dummylocation install
|
||||||
# or
|
# or
|
||||||
@ -48,7 +48,7 @@ CFLAGS += -D_XOPEN_SOURCE=600
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
#CFLAGS += -ansi
|
#CFLAGS += -ansi
|
||||||
# -DNO_GETADDRINFO
|
#CFLAGS += -DNO_GETADDRINFO
|
||||||
INSTALL = install
|
INSTALL = install
|
||||||
SH = /bin/sh
|
SH = /bin/sh
|
||||||
JAVA = java
|
JAVA = java
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* $Id: connecthostport.c,v 1.15 2015/10/09 16:26:19 nanard Exp $ */
|
/* $Id: connecthostport.c,v 1.15 2015/10/09 16:26:19 nanard Exp $ */
|
||||||
/* Project : miniupnp
|
/* Project : miniupnp
|
||||||
* Author : Thomas Bernard
|
* Author : Thomas Bernard
|
||||||
* Copyright (c) 2010-2016 Thomas Bernard
|
* Copyright (c) 2010-2017 Thomas Bernard
|
||||||
* This software is subject to the conditions detailed in the
|
* This software is subject to the conditions detailed in the
|
||||||
* LICENCE file provided in this distribution. */
|
* LICENCE file provided in this distribution. */
|
||||||
|
|
||||||
@ -36,10 +36,8 @@
|
|||||||
/* defining MINIUPNPC_IGNORE_EINTR enable the ignore of interruptions
|
/* defining MINIUPNPC_IGNORE_EINTR enable the ignore of interruptions
|
||||||
* during the connect() call */
|
* during the connect() call */
|
||||||
#define MINIUPNPC_IGNORE_EINTR
|
#define MINIUPNPC_IGNORE_EINTR
|
||||||
#ifndef USE_GETHOSTBYNAME
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
#endif /* #ifndef USE_GETHOSTBYNAME */
|
|
||||||
#endif /* #else _WIN32 */
|
#endif /* #else _WIN32 */
|
||||||
|
|
||||||
/* definition of PRINT_SOCKET_ERROR */
|
/* definition of PRINT_SOCKET_ERROR */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user