summaryrefslogtreecommitdiffstats
path: root/Modules/getnameinfo.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-08-15 17:14:33 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-08-15 17:14:33 (GMT)
commitf95dd0a2986392d4f51bb1dd17db50ff40aa90d5 (patch)
tree9a8a9c569d68b7bbdfde292bd66a5b71fa62dc02 /Modules/getnameinfo.c
parent834a85a235020379935418510c0043f08a08a2a5 (diff)
downloadcpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.zip
cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.tar.gz
cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.tar.bz2
Fix portability problems with glibc 2.0, as reported in #449157.
Diffstat (limited to 'Modules/getnameinfo.c')
-rw-r--r--Modules/getnameinfo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c
index 475b531..4827bc6 100644
--- a/Modules/getnameinfo.c
+++ b/Modules/getnameinfo.c
@@ -81,6 +81,10 @@ struct gni_sockinet {
#define ENI_FAMILY 5
#define ENI_SALEN 6
+/* forward declaration to make gcc happy */
+int getnameinfo Py_PROTO((const struct sockaddr *, size_t, char *, size_t,
+ char *, size_t, int));
+
int
getnameinfo(sa, salen, host, hostlen, serv, servlen, flags)
const struct sockaddr *sa;