summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-07-10 00:57:37 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-07-10 00:57:37 (GMT)
commitf6067ec336e2eff1fc1cce90c67c20b0d4e80c22 (patch)
treefdab3752ac9bbe8471e6a893aa4417a5ffe50317 /Modules
parent12f8c4d2e3edf2717869c7578616f188ecd2daed (diff)
downloadcpython-f6067ec336e2eff1fc1cce90c67c20b0d4e80c22.zip
cpython-f6067ec336e2eff1fc1cce90c67c20b0d4e80c22.tar.gz
cpython-f6067ec336e2eff1fc1cce90c67c20b0d4e80c22.tar.bz2
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')
-rw-r--r--Modules/nismodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c
index 0a38ee8..2494adb 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;