mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Some preprocessors have problems if the # character isn't at position 1.
This commit is contained in:
parent
2e5cccd1b6
commit
7f5d092223
24
acinclude.m4
24
acinclude.m4
@ -704,15 +704,15 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
|
|||||||
AC_COMPILE_IFELSE([
|
AC_COMPILE_IFELSE([
|
||||||
AC_LANG_PROGRAM([
|
AC_LANG_PROGRAM([
|
||||||
|
|
||||||
#ifdef HAVE_SYS_TYPES_H
|
#ifdef HAVE_SYS_TYPES_H
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_NETDB_H
|
#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int getnameinfo(const struct sockaddr *,
|
extern int getnameinfo(const struct sockaddr *,
|
||||||
$gni_arg2,
|
$gni_arg2,
|
||||||
@ -725,11 +725,11 @@ AC_DEFUN([CURL_FUNC_GETNAMEINFO_ARGTYPES], [
|
|||||||
],[
|
],[
|
||||||
|
|
||||||
int res;
|
int res;
|
||||||
struct sockaddr *sa=NULL;
|
struct sockaddr *sa=0;
|
||||||
$gni_arg2 salen=0;
|
$gni_arg2 salen=0;
|
||||||
char *host=NULL;
|
char *host=0;
|
||||||
$gni_arg46 hostlen=0;
|
$gni_arg46 hostlen=0;
|
||||||
char *serv=NULL;
|
char *serv=0;
|
||||||
$gni_arg46 servlen=0;
|
$gni_arg46 servlen=0;
|
||||||
$gni_arg7 flags=0;
|
$gni_arg7 flags=0;
|
||||||
|
|
||||||
|
14
configure.ac
14
configure.ac
@ -1618,13 +1618,13 @@ if test "$ac_cv_func_getnameinfo" = "yes"; then
|
|||||||
AC_CHECK_DECL(getnameinfo, ,
|
AC_CHECK_DECL(getnameinfo, ,
|
||||||
AC_DEFINE(HAVE_NO_GETNAMEINFO_PROTO, 1,
|
AC_DEFINE(HAVE_NO_GETNAMEINFO_PROTO, 1,
|
||||||
[Defined if no getnameinfo() prototype available]),
|
[Defined if no getnameinfo() prototype available]),
|
||||||
[
|
[
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_NETDB_H
|
#ifdef HAVE_NETDB_H
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#endif
|
#endif
|
||||||
])
|
])
|
||||||
CURL_FUNC_GETNAMEINFO_ARGTYPES
|
CURL_FUNC_GETNAMEINFO_ARGTYPES
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user