X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetgroups.c;h=482b24a788ea0fcc460af0bb961f4c6b9ac5cfd1;hb=04707083859be0e1be90aac1355e4efe5c3a339b;hp=62234d9754ed6a826b1228b1750f97b7589e2365;hpb=b0f648cf3ba46b06c44bf84ec74480a42f8666ba;p=gnulib.git diff --git a/lib/getgroups.c b/lib/getgroups.c index 62234d975..482b24a78 100644 --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -53,10 +53,10 @@ getgroups (int n _GL_UNUSED, GETGROUPS_T *groups _GL_UNUSED) says that the behavior is dubious if you compile different sections of a program with different _DARWIN_C_SOURCE settings, so fix only the offending symbol. */ -#ifdef __APPLE__ +# ifdef __APPLE__ int posix_getgroups (int, gid_t []) __asm ("_getgroups"); -# define getgroups posix_getgroups -#endif +# define getgroups posix_getgroups +# endif /* On at least Ultrix 4.3 and NextStep 3.2, getgroups (0, NULL) always fails. On other systems, it returns the number of supplemental