From bffe69a151bbd1aae72e50c128fdb0c58596ade1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 21 Jul 2008 00:36:55 +0000 Subject: 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. --- lib/Makefile.netware | 1 + lib/config-mac.h | 1 + lib/config-riscos.h | 3 +++ lib/config-symbian.h | 1 + lib/config.dos | 1 + 5 files changed, 7 insertions(+) (limited to 'lib') diff --git a/lib/Makefile.netware b/lib/Makefile.netware index 6e0aac995..07718e0a0 100644 --- a/lib/Makefile.netware +++ b/lib/Makefile.netware @@ -428,6 +428,7 @@ else @echo $(DL)#define RECVFROM_TYPE_ARG5 struct sockaddr$(DL) >> $@ @echo $(DL)#define RECVFROM_TYPE_ARG6 int$(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_TYPE_ARG1 int$(DL) >> $@ @echo $(DL)#define SEND_TYPE_ARG2 void *$(DL) >> $@ diff --git a/lib/config-mac.h b/lib/config-mac.h index d5c143c4f..e6d2130a5 100644 --- a/lib/config-mac.h +++ b/lib/config-mac.h @@ -71,6 +71,7 @@ #define RECVFROM_TYPE_ARG5 struct sockaddr #define RECVFROM_TYPE_ARG6 int #define RECVFROM_TYPE_RETV ssize_t +#define RECVFROM_TYPE_ARG2_IS_VOID 1 #define HAVE_SEND 1 #define SEND_TYPE_ARG1 int diff --git a/lib/config-riscos.h b/lib/config-riscos.h index 7140e9c24..86ef864e3 100644 --- a/lib/config-riscos.h +++ b/lib/config-riscos.h @@ -439,6 +439,9 @@ /* Define to the type pointed by arg 2 for recvfrom. */ #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 RECVFROM_TYPE_ARG3 size_t diff --git a/lib/config-symbian.h b/lib/config-symbian.h index b7467dbd9..0c8a1716e 100644 --- a/lib/config-symbian.h +++ b/lib/config-symbian.h @@ -690,6 +690,7 @@ #define RECVFROM_TYPE_ARG5 struct sockaddr #define RECVFROM_TYPE_ARG6 size_t #define RECVFROM_TYPE_RETV ssize_t +#define RECVFROM_TYPE_ARG2_IS_VOID 1 #define SEND_TYPE_ARG1 int #define SEND_QUAL_ARG2 const diff --git a/lib/config.dos b/lib/config.dos index 9669bdb21..76b30debd 100644 --- a/lib/config.dos +++ b/lib/config.dos @@ -86,6 +86,7 @@ #define RECVFROM_TYPE_ARG5 struct sockaddr #define RECVFROM_TYPE_ARG6 int #define RECVFROM_TYPE_RETV int +#define RECVFROM_TYPE_ARG2_IS_VOID 1 #define BSD -- cgit v1.2.3