Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compat/getgrent_r.c: remove use of C11 type #12

Merged
merged 1 commit into from
Aug 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions compat/getgrent_r.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,10 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>

#if defined(BSD)
#include <sys/param.h>
#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 <stdint.h>
#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;
Expand Down