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:
Collin Funk
2025-01-06 13:56:40 -08:00
parent e264521aaa
commit 71fbdb50ab
4 changed files with 21 additions and 0 deletions
+9
View File
@@ -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
+3
View File
@@ -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
+3
View File
@@ -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
+6
View File
@@ -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>