From: Thomas Wouters Date: Sun, 21 Jan 2001 23:34:12 +0000 (+0000) Subject: Move declaration of 'clnt_create()' NIS function to pyport.h, as it's X-Git-Tag: v2.1a1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e75e6d06d2e94551ceb0c2bf8219bce9621f46d0;p=python Move declaration of 'clnt_create()' NIS function to pyport.h, as it's supposed to be declared in system include files (with a proper prototype.) Should be moved to a platform-specific block if anyone finds out which broken platforms need it :-) --- diff --git a/Include/pyport.h b/Include/pyport.h index 852efb894f..1bd1873b80 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -266,6 +266,9 @@ extern int lstat(const char *, struct stat *); extern int symlink(const char *, const char *); extern int fsync(int fd); +/* From Modules/nismodule.c */ +CLIENT *clnt_create(); + #endif /* 0 */ diff --git a/Modules/nismodule.c b/Modules/nismodule.c index 36959cf0c1..bcc8e9f968 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -299,7 +299,7 @@ nis_maplist (void) { nisresp_maplist *list; char *dom; - CLIENT *cl, *clnt_create(); + CLIENT *cl; char *server = NULL; int mapi = 0; int err;