From: <slf...@us...> - 2003-04-22 08:51:53
|
Update of /cvsroot/jungerl/jungerl/lib/posix_drv/c_src In directory sc8-pr-cvs1:/tmp/cvs-serv8644/c_src Modified Files: my-posix.c my-posix.h posix_drv.c posix_drv.h Log Message: Replace the NGROUPS_MAX hack with another. Index: my-posix.c =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/posix_drv/c_src/my-posix.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- my-posix.c 22 Apr 2003 08:42:29 -0000 1.2 +++ my-posix.c 22 Apr 2003 08:51:46 -0000 1.3 @@ -9,6 +9,10 @@ /* BSD-specific? (for NGROUPS_MAX) #include <sys/syslimits.h> */ #include <sys/stat.h> +#ifndef NGROUPS_MAX +#define NGROUPS_MAX 64 /* Big, but we'll be safe */ +#endif /* !NGROUPS_MAX */ + #include <erl_driver.h> #include <erl_driver_tk.h> #include <posix_drv.h> Index: my-posix.h =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/posix_drv/c_src/my-posix.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- my-posix.h 22 Apr 2003 08:42:31 -0000 1.2 +++ my-posix.h 22 Apr 2003 08:51:47 -0000 1.3 @@ -3,9 +3,5 @@ ** See the file "../LICENSE" for license details. */ -#ifndef NGROUPS_MAX -#define NGROUPS_MAX 64 /* Big, but we'll be safe */ -#endif /* !NGROUPS_MAX */ - int my_getgroups(gid_t *); int make_getgroups_list(struct descriptor *desc, callstate_t *c, ErlDrvTermData *msg, int *members, int *msgcount); Index: posix_drv.c =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/posix_drv/c_src/posix_drv.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- posix_drv.c 22 Apr 2003 07:41:39 -0000 1.1 +++ posix_drv.c 22 Apr 2003 08:51:47 -0000 1.2 @@ -51,7 +51,12 @@ #include <grp.h> #include <sys/types.h> #include <sys/stat.h> -#include <sys/syslimits.h> +/* BSD-specific? (for NGROUPS_MAX) #include <sys/syslimits.h> */ + +#ifndef NGROUPS_MAX +#define NGROUPS_MAX 64 /* Big, but we'll be safe */ +#endif /* !NGROUPS_MAX */ + /* </verbatim --place="top_cpp_stuff"--> */ Index: posix_drv.h =================================================================== RCS file: /cvsroot/jungerl/jungerl/lib/posix_drv/c_src/posix_drv.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- posix_drv.h 22 Apr 2003 07:41:39 -0000 1.1 +++ posix_drv.h 22 Apr 2003 08:51:47 -0000 1.2 @@ -116,7 +116,7 @@ ** filename = posix.xml ** gslgen version = 2.000 Beta 1 ** date = 2003/04/22 -** time = 2:03:26 +** time = 3:50:16 */ #endif /* __POSIX_DRV_H */ |