diff --git a/lib/libc/gen/gen-compat.h b/lib/libc/gen/gen-compat.h --- a/lib/libc/gen/gen-compat.h +++ b/lib/libc/gen/gen-compat.h @@ -52,6 +52,7 @@ char *freebsd11_devname(__uint32_t dev, __mode_t type); char *freebsd11_devname_r(__uint32_t dev, __mode_t type, char *buf, int len); -int freebsd14_setgroups(int gidsize, const __gid_t *gidset); +int freebsd14_setgroups(int gidsize, const __gid_t *gidset) + __asm__("setgroups@FBSD_1.0"); #endif /* _GEN_COMPAT_H_ */ diff --git a/lib/libc/include/compat.h b/lib/libc/include/compat.h --- a/lib/libc/include/compat.h +++ b/lib/libc/include/compat.h @@ -69,9 +69,6 @@ __sym_compat(swapoff, freebsd13_swapoff, FBSD_1.0); -__sym_compat(getgroups, freebsd14_getgroups, FBSD_1.0); -__sym_compat(setgroups, freebsd14_setgroups, FBSD_1.0); - #undef __sym_compat #define __weak_reference(sym,alias) \