Commit f6067ec3 authored by Brett Cannon's avatar Brett Cannon

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.
parent 12f8c4d2
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment