From 40c4f2016fed6679156df8ec054b4e99da10641d Mon Sep 17 00:00:00 2001 From: Michael Aldridge Date: Mon, 5 Aug 2019 22:54:09 -0700 Subject: [PATCH] compat/getgrent_r.c: remove use of C11 type --- compat/getgrent_r.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/compat/getgrent_r.c b/compat/getgrent_r.c index 863413f..d722eec 100644 --- a/compat/getgrent_r.c +++ b/compat/getgrent_r.c @@ -36,17 +36,10 @@ #include #include #include - -#if defined(BSD) -#include -#else -// This branch is necessarily Linux and not GNU because of the checks -// defined above that guard the rest of the compat layer. On Linux we -// don't pull in param.h as it is very obsolete. #include -#define ALIGNBYTES _Alignof(max_align_t) + +#define ALIGNBYTES (sizeof(uintptr_t) - 1) #define ALIGN(p)(((uintptr_t)(p) + ALIGNBYTES & ~ALIGNBYTES)) -#endif // defined(BSD) static unsigned atou(char **s) { unsigned x;