Commit d870a631 authored by Matt Behrens's avatar Matt Behrens

make initgroups module a stub on non-UNIX system, should fix the

Win32 build
parent 07769949
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
#include "Python.h" #include "Python.h"
#if defined(__unix__) || defined(unix)
#include <grp.h> #include <grp.h>
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
...@@ -40,6 +42,16 @@ static PyMethodDef InitgroupsMethods[] = { ...@@ -40,6 +42,16 @@ static PyMethodDef InitgroupsMethods[] = {
{NULL, NULL} {NULL, NULL}
}; };
#else
/* This module is empty on non-UNIX systems. */
static PyMethodDef InitgroupsMethods[] = {
{NULL, NULL}
};
#endif /* defined(__unix__) || defined(unix) */
void void
initinitgroups() initinitgroups()
{ {
......
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