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

Trying to upstream debian patches: Fix compilation on platforms without MAP_POPULATE #985

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion tools/sepdebugcrcfix.c
Expand Up @@ -154,7 +154,11 @@ crc32 (const char *fname, const char *base_fname, uint32_t *crcp)
void *map = NULL;
if (buf == NULL)
{
map = mmap (NULL, maplen, PROT_READ, MAP_PRIVATE | MAP_POPULATE,
map = mmap (NULL, maplen, PROT_READ, MAP_PRIVATE
#ifdef MAP_POPULATE
| MAP_POPULATE
#endif
,
fd, offset);
if (map == MAP_FAILED)
{
Expand Down