Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e75e6d0

Browse files
committed
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 :-)
1 parent b2dfd73 commit e75e6d0

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Include/pyport.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ extern int lstat(const char *, struct stat *);
266266
extern int symlink(const char *, const char *);
267267
extern int fsync(int fd);
268268

269+
/* From Modules/nismodule.c */
270+
CLIENT *clnt_create();
271+
269272
#endif /* 0 */
270273

271274

Modules/nismodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ nis_maplist (void)
299299
{
300300
nisresp_maplist *list;
301301
char *dom;
302-
CLIENT *cl, *clnt_create();
302+
CLIENT *cl;
303303
char *server = NULL;
304304
int mapi = 0;
305305
int err;

0 commit comments

Comments
 (0)