diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-07-10 00:57:37 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-07-10 00:57:37 +0000 |
commit | ee155b525673c256d8405ba28ca1bab3135a0240 (patch) | |
tree | bc8a52e5d5d9a5889635927ac9a21cb06f7624b7 /Modules/nismodule.c | |
parent | c9ff982bf68aced32a31eb2e29a3912cca8550c3 (diff) | |
download | cpython-ee155b525673c256d8405ba28ca1bab3135a0240.tar.gz |
Add an #ifdef __APPLE__ around typedef of foreachfunc to match Apple's
incorrect declaration for ypall_callback in /usr/include/rpcsvc/ypcInt.h .
Shouldn't hurt any code since the differences are unsigned long instead of int and
void * instead of char *. Removes warning about improper function pointer
assignment during compilation.
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r-- | Modules/nismodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c index 0a38ee85c5..2494adbbed 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -68,7 +68,11 @@ nis_mapname (char *map, int *pfix) return map; } +#ifdef __APPLE__ +typedef int (*foreachfunc)(unsigned long, char *, int, char *, int, void *); +#else typedef int (*foreachfunc)(int, char *, int, char *, int, char *); +#endif struct ypcallback_data { PyObject *dict; |