]> granicus.if.org Git - python/commitdiff
Move declaration of 'clnt_create()' NIS function to pyport.h, as it's
authorThomas Wouters <thomas@python.org>
Sun, 21 Jan 2001 23:34:12 +0000 (23:34 +0000)
committerThomas Wouters <thomas@python.org>
Sun, 21 Jan 2001 23:34:12 +0000 (23:34 +0000)
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 :-)

Include/pyport.h
Modules/nismodule.c

index 852efb894fabf82aa703dac9a4fb2829afcca300..1bd1873b809232dfd85916cc143c66234290cb6c 100644 (file)
@@ -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 */
 
 
index 36959cf0c13c48f2b2aa3ae5476c31f7118f64f8..bcc8e9f968e9a8c9efdc74a9cbf37a0785dcb438 100644 (file)
@@ -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;