mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
now cause the definition of RECVFROM_TYPE_ARG2_IS_VOID, RECVFROM_TYPE_ARG5_IS_VOID or RECVFROM_TYPE_ARG6_IS_VOID, as appropriate.
This commit is contained in:
parent
71525352f0
commit
bffe69a151
5
CHANGES
5
CHANGES
@ -6,6 +6,11 @@
|
|||||||
|
|
||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
|
Yang Tse (20 Jul 2008)
|
||||||
|
- when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
|
||||||
|
now cause the definition, as appropriate, of RECVFROM_TYPE_ARG2_IS_VOID,
|
||||||
|
RECVFROM_TYPE_ARG5_IS_VOID or RECVFROM_TYPE_ARG6_IS_VOID.
|
||||||
|
|
||||||
Yang Tse (17 Jul 2008)
|
Yang Tse (17 Jul 2008)
|
||||||
- RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
|
- RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
|
||||||
to the data type pointed by its respective argument and not the pointer type.
|
to the data type pointed by its respective argument and not the pointer type.
|
||||||
|
13
acinclude.m4
13
acinclude.m4
@ -1739,6 +1739,19 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
|
|||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6,
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6,
|
||||||
[Define to the type pointed by arg 6 for recvfrom.])
|
[Define to the type pointed by arg 6 for recvfrom.])
|
||||||
#
|
#
|
||||||
|
if test "$recvfrom_type_arg2" = "void"; then
|
||||||
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2_IS_VOID, 1,
|
||||||
|
[Define to 1 if the type pointed by arg 2 for recvfrom is void.])
|
||||||
|
fi
|
||||||
|
if test "$recvfrom_type_arg5" = "void"; then
|
||||||
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5_IS_VOID, 1,
|
||||||
|
[Define to 1 if the type pointed by arg 5 for recvfrom is void.])
|
||||||
|
fi
|
||||||
|
if test "$recvfrom_type_arg6" = "void"; then
|
||||||
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6_IS_VOID, 1,
|
||||||
|
[Define to 1 if the type pointed by arg 6 for recvfrom is void.])
|
||||||
|
fi
|
||||||
|
#
|
||||||
case $prev_sh_opts in
|
case $prev_sh_opts in
|
||||||
*f*)
|
*f*)
|
||||||
;;
|
;;
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
Changelog for the c-ares project
|
Changelog for the c-ares project
|
||||||
|
|
||||||
|
* Jul 20 2008 (Yang Tse)
|
||||||
|
- when recvfrom prototype uses a void pointer for arguments 2, 5 or 6 this will
|
||||||
|
now cause the definition, as appropriate, of RECVFROM_TYPE_ARG2_IS_VOID,
|
||||||
|
RECVFROM_TYPE_ARG5_IS_VOID or RECVFROM_TYPE_ARG6_IS_VOID.
|
||||||
|
|
||||||
* Jul 17 2008 (Yang Tse)
|
* Jul 17 2008 (Yang Tse)
|
||||||
- RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
|
- RECVFROM_TYPE_ARG2, RECVFROM_TYPE_ARG5 and RECVFROM_TYPE_ARG6 are now defined
|
||||||
to the data type pointed by its respective argument and not the pointer type.
|
to the data type pointed by its respective argument and not the pointer type.
|
||||||
|
@ -27,7 +27,8 @@ CFLAGS += -DWATT32 -DHAVE_AF_INET6 -DHAVE_PF_INET6 -DHAVE_IOCTLSOCKET \
|
|||||||
-DRECVFROM_TYPE_ARG1='int' -DRECVFROM_TYPE_ARG2='void' \
|
-DRECVFROM_TYPE_ARG1='int' -DRECVFROM_TYPE_ARG2='void' \
|
||||||
-DRECVFROM_TYPE_ARG3='int' -DRECVFROM_TYPE_ARG4='int' \
|
-DRECVFROM_TYPE_ARG3='int' -DRECVFROM_TYPE_ARG4='int' \
|
||||||
-DRECVFROM_TYPE_ARG6='int' -DRECVFROM_TYPE_RETV='int' \
|
-DRECVFROM_TYPE_ARG6='int' -DRECVFROM_TYPE_RETV='int' \
|
||||||
-DRECVFROM_TYPE_ARG5='struct sockaddr' -DHAVE_RECVFROM
|
-DRECVFROM_TYPE_ARG5='struct sockaddr' -DHAVE_RECVFROM \
|
||||||
|
-DRECVFROM_TYPE_ARG2_IS_VOID
|
||||||
|
|
||||||
LDFLAGS = -s
|
LDFLAGS = -s
|
||||||
|
|
||||||
|
@ -338,6 +338,7 @@ else
|
|||||||
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
|
||||||
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
|
||||||
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
|
||||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
|
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
|
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
|
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
|
||||||
|
@ -1206,6 +1206,19 @@ AC_DEFUN([CURL_CHECK_FUNC_RECVFROM], [
|
|||||||
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6,
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6, $recvfrom_type_arg6,
|
||||||
[Define to the type pointed by arg 6 for recvfrom.])
|
[Define to the type pointed by arg 6 for recvfrom.])
|
||||||
#
|
#
|
||||||
|
if test "$recvfrom_type_arg2" = "void"; then
|
||||||
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG2_IS_VOID, 1,
|
||||||
|
[Define to 1 if the type pointed by arg 2 for recvfrom is void.])
|
||||||
|
fi
|
||||||
|
if test "$recvfrom_type_arg5" = "void"; then
|
||||||
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG5_IS_VOID, 1,
|
||||||
|
[Define to 1 if the type pointed by arg 5 for recvfrom is void.])
|
||||||
|
fi
|
||||||
|
if test "$recvfrom_type_arg6" = "void"; then
|
||||||
|
AC_DEFINE_UNQUOTED(RECVFROM_TYPE_ARG6_IS_VOID, 1,
|
||||||
|
[Define to 1 if the type pointed by arg 6 for recvfrom is void.])
|
||||||
|
fi
|
||||||
|
#
|
||||||
case $prev_sh_opts in
|
case $prev_sh_opts in
|
||||||
*f*)
|
*f*)
|
||||||
;;
|
;;
|
||||||
|
@ -428,6 +428,7 @@ else
|
|||||||
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
|
||||||
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
|
||||||
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
|
||||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
|
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
|
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
|
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
|
||||||
|
@ -71,6 +71,7 @@
|
|||||||
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
||||||
#define RECVFROM_TYPE_ARG6 int
|
#define RECVFROM_TYPE_ARG6 int
|
||||||
#define RECVFROM_TYPE_RETV ssize_t
|
#define RECVFROM_TYPE_RETV ssize_t
|
||||||
|
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
||||||
|
|
||||||
#define HAVE_SEND 1
|
#define HAVE_SEND 1
|
||||||
#define SEND_TYPE_ARG1 int
|
#define SEND_TYPE_ARG1 int
|
||||||
|
@ -439,6 +439,9 @@
|
|||||||
/* Define to the type pointed by arg 2 for recvfrom. */
|
/* Define to the type pointed by arg 2 for recvfrom. */
|
||||||
#define RECVFROM_TYPE_ARG2 void
|
#define RECVFROM_TYPE_ARG2 void
|
||||||
|
|
||||||
|
/* Define to 1 if the type pointed by arg 2 for recvfrom is void. */
|
||||||
|
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
||||||
|
|
||||||
/* Define to the type of arg 3 for recvfrom. */
|
/* Define to the type of arg 3 for recvfrom. */
|
||||||
#define RECVFROM_TYPE_ARG3 size_t
|
#define RECVFROM_TYPE_ARG3 size_t
|
||||||
|
|
||||||
|
@ -690,6 +690,7 @@
|
|||||||
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
||||||
#define RECVFROM_TYPE_ARG6 size_t
|
#define RECVFROM_TYPE_ARG6 size_t
|
||||||
#define RECVFROM_TYPE_RETV ssize_t
|
#define RECVFROM_TYPE_RETV ssize_t
|
||||||
|
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
||||||
|
|
||||||
#define SEND_TYPE_ARG1 int
|
#define SEND_TYPE_ARG1 int
|
||||||
#define SEND_QUAL_ARG2 const
|
#define SEND_QUAL_ARG2 const
|
||||||
|
@ -86,6 +86,7 @@
|
|||||||
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
#define RECVFROM_TYPE_ARG5 struct sockaddr
|
||||||
#define RECVFROM_TYPE_ARG6 int
|
#define RECVFROM_TYPE_ARG6 int
|
||||||
#define RECVFROM_TYPE_RETV int
|
#define RECVFROM_TYPE_RETV int
|
||||||
|
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
||||||
|
|
||||||
#define BSD
|
#define BSD
|
||||||
|
|
||||||
|
@ -324,6 +324,9 @@
|
|||||||
/* Define to the type pointed by arg 2 for recvfrom. */
|
/* Define to the type pointed by arg 2 for recvfrom. */
|
||||||
#define RECVFROM_TYPE_ARG2 void
|
#define RECVFROM_TYPE_ARG2 void
|
||||||
|
|
||||||
|
/* Define if the type pointed by arg 2 for recvfrom is void. */
|
||||||
|
#define RECVFROM_TYPE_ARG2_IS_VOID 1
|
||||||
|
|
||||||
/* Define to the type of arg 3 for recvfrom. */
|
/* Define to the type of arg 3 for recvfrom. */
|
||||||
#define RECVFROM_TYPE_ARG3 int
|
#define RECVFROM_TYPE_ARG3 int
|
||||||
|
|
||||||
|
@ -411,6 +411,7 @@ else
|
|||||||
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@
|
||||||
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_ARG6 int$(DL) >> $@
|
||||||
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
|
@echo $(DL)#define RECVFROM_TYPE_RETV ssize_t$(DL) >> $@
|
||||||
|
@echo $(DL)#define RECVFROM_TYPE_ARG2_IS_VOID 1$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
|
@echo $(DL)#define SEND_QUAL_ARG2$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
|
@echo $(DL)#define SEND_TYPE_ARG1 int$(DL) >> $@
|
||||||
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
|
@echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@
|
||||||
|
Loading…
Reference in New Issue
Block a user