mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-09-01 11:16:02 +00:00
servent tests: Fix failure on 32-bit native Windows.
* tests/test-servent.c (getservbyname, getservbyport) [_WIN64 && !__CYGWIN__]: Disable signature check. * doc/posix-functions/getservbyname.texi: Document the incompatible __stdcall function signature. * doc/posix-functions/getservbyport.texi: Likewise.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2025-01-06 Collin Funk <collin.funk1@gmail.com>
|
||||
|
||||
servent tests: Fix failure on 32-bit native Windows.
|
||||
* tests/test-servent.c (getservbyname, getservbyport)
|
||||
[_WIN64 && !__CYGWIN__]: Disable signature check.
|
||||
* doc/posix-functions/getservbyname.texi: Document the incompatible
|
||||
__stdcall function signature.
|
||||
* doc/posix-functions/getservbyport.texi: Likewise.
|
||||
|
||||
2025-01-05 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
parse-datetime-tests: port to Gnulib mktime
|
||||
|
||||
@@ -17,4 +17,7 @@ mingw, MSVC 14.
|
||||
|
||||
Portability problems not fixed by Gnulib:
|
||||
@itemize
|
||||
@item
|
||||
On Windows, in 32-bit mode, this function is defined with a calling
|
||||
convention that is different from @code{cdecl}.
|
||||
@end itemize
|
||||
|
||||
@@ -17,4 +17,7 @@ mingw, MSVC 14.
|
||||
|
||||
Portability problems not fixed by Gnulib:
|
||||
@itemize
|
||||
@item
|
||||
On Windows, in 32-bit mode, this function is defined with a calling
|
||||
convention that is different from @code{cdecl}.
|
||||
@end itemize
|
||||
|
||||
@@ -22,9 +22,15 @@
|
||||
#include <netdb.h>
|
||||
|
||||
#include "signature.h"
|
||||
|
||||
#if defined _WIN64 && !defined __CYGWIN__
|
||||
/* On 32-bit native Windows, these two functions may have the __stdcall calling
|
||||
convention. But the SIGNATURE_CHECK works only for functions with __cdecl
|
||||
calling convention. */
|
||||
SIGNATURE_CHECK (getservbyname, struct servent *,
|
||||
(char const *, char const *));
|
||||
SIGNATURE_CHECK (getservbyport, struct servent *, (int, char const *));
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
Reference in New Issue
Block a user