[OpenAFS-devel] __NR_setgroups32

Chas Williams chas@cmf.nrl.navy.mil
Thu, 19 Apr 2001 23:38:08 -0400 (EDT)


it seems the the ppc 2.4 kernels dont have __NR_setgroups32 yet.  so
i would prefer the following more general ifdef:

Index: osi_module.c
===================================================================
RCS file: /afs/cmf/project/cvsroot/openafs/src/afs/LINUX/osi_module.c,v
retrieving revision 1.4
diff -u -r1.4 osi_module.c
--- osi_module.c	2001/04/19 22:38:23	1.4
+++ osi_module.c	2001/04/20 00:40:02
@@ -135,7 +135,7 @@
     sys_setgroupsp32 = SYSCALL2POINTER sys_call_table32[__NR_setgroups];
     sys_call_table32[__NR_setgroups] = POINTER2SYSCALL afs_xsetgroups32;
 #endif
-#if defined(AFS_LINUX24_ENV)
+#if defined(__NR_setgroups32)
     sys_setgroups32p = SYSCALL2POINTER sys_call_table[__NR_setgroups32];
     sys_call_table[__NR_setgroups32] = POINTER2SYSCALL afs_xsetgroups32;
 #endif
@@ -153,7 +153,7 @@
     sys_call_table32[__NR_setgroups] = POINTER2SYSCALL sys_setgroupsp32;
     sys_call_table32[__NR_afs_syscall] = afs_ni_syscall32;
 #endif
-#if defined(AFS_LINUX24_ENV)
+#if defined(__NR_setgroups32)
     sys_call_table[__NR_setgroups32] = POINTER2SYSCALL sys_setgroups32p;
 #endif
     unregister_filesystem(&afs_file_system);