mirror of https://github.com/getdnsapi/getdns.git
Rearrange includes for finding inet_ntop on Windows
+ make sure stubby is linked with initial LDFLAGS (i.e. static) as well
This commit is contained in:
parent
d5efa01d06
commit
ffc72ff253
53
configure.ac
53
configure.ac
|
@ -1147,8 +1147,8 @@ AC_SUBST(INSTALL_STUBBY)
|
||||||
AC_SUBST(UNINSTALL_STUBBY)
|
AC_SUBST(UNINSTALL_STUBBY)
|
||||||
AC_SUBST(STUBBY_XTRA_OBJS)
|
AC_SUBST(STUBBY_XTRA_OBJS)
|
||||||
|
|
||||||
STUBBY_LDFLAGS=""
|
|
||||||
STUBBY_LIBS=""
|
STUBBY_LIBS=""
|
||||||
|
STUBBY_LDFLAGS=""
|
||||||
|
|
||||||
if test $my_with_yaml = 1
|
if test $my_with_yaml = 1
|
||||||
then
|
then
|
||||||
|
@ -1156,8 +1156,8 @@ then
|
||||||
then
|
then
|
||||||
getdns_LIBS="$LIBS"
|
getdns_LIBS="$LIBS"
|
||||||
getdns_LDFLAGS="$LDFLAGS"
|
getdns_LDFLAGS="$LDFLAGS"
|
||||||
LIBS=""
|
LIBS="$initial_LIBS"
|
||||||
LDFLAGS=""
|
LDFLAGS="$initial_LDFLAGS"
|
||||||
fi
|
fi
|
||||||
AC_ARG_WITH(libyaml, AS_HELP_STRING([--with-libyaml=pathname],
|
AC_ARG_WITH(libyaml, AS_HELP_STRING([--with-libyaml=pathname],
|
||||||
[path to libyaml (default: search /usr/local ..)]),
|
[path to libyaml (default: search /usr/local ..)]),
|
||||||
|
@ -1350,21 +1350,6 @@ AH_BOTTOM([
|
||||||
# ifndef FD_SETSIZE
|
# ifndef FD_SETSIZE
|
||||||
# define FD_SETSIZE 1024
|
# define FD_SETSIZE 1024
|
||||||
# endif
|
# endif
|
||||||
# define PRIsz "Iu"
|
|
||||||
|
|
||||||
/* Windows wants us to use _strdup instead of strdup */
|
|
||||||
# ifndef strdup
|
|
||||||
# define strdup _strdup
|
|
||||||
# endif
|
|
||||||
#else
|
|
||||||
# define PRIsz "zu"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
/* the version of the windows API enabled */
|
/* the version of the windows API enabled */
|
||||||
# ifndef WINVER
|
# ifndef WINVER
|
||||||
|
@ -1373,14 +1358,24 @@ AH_BOTTOM([
|
||||||
# ifndef _WIN32_WINNT
|
# ifndef _WIN32_WINNT
|
||||||
# define _WIN32_WINNT 0x0600 // 0x0502
|
# define _WIN32_WINNT 0x0600 // 0x0502
|
||||||
# endif
|
# endif
|
||||||
#ifdef HAVE_WINSOCK2_H
|
|
||||||
#include <winsock2.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# ifdef HAVE_WS2TCPIP_H
|
# ifdef HAVE_WS2TCPIP_H
|
||||||
# include <ws2tcpip.h>
|
# include <ws2tcpip.h>
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
# if _MSC_VER >= 1800
|
||||||
|
# define PRIsz "zu"
|
||||||
|
# else
|
||||||
|
# define PRIsz "Iu"
|
||||||
|
# endif
|
||||||
|
# else
|
||||||
|
# define PRIsz "Iu"
|
||||||
|
# endif
|
||||||
|
|
||||||
|
# ifdef HAVE_WINSOCK2_H
|
||||||
|
# include <winsock2.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
# ifndef USE_WINSOCK
|
# ifndef USE_WINSOCK
|
||||||
# define ARG_LL "%ll"
|
# define ARG_LL "%ll"
|
||||||
# else
|
# else
|
||||||
|
@ -1394,6 +1389,20 @@ AH_BOTTOM([
|
||||||
# define FD_SET_T
|
# define FD_SET_T
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
/* Windows wants us to use _strdup instead of strdup */
|
||||||
|
# ifndef strdup
|
||||||
|
# define strdup _strdup
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
|
# define PRIsz "zu"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -32,10 +32,10 @@
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include "config.h"
|
|
||||||
#ifndef USE_WINSOCK
|
#ifndef USE_WINSOCK
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include <ctype.h>
|
||||||
#ifndef USE_WINSOCK
|
#ifndef USE_WINSOCK
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
Loading…
Reference in New Issue