forked from ptesarik/libkdumpfile
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file cache test for 32-bit architectures
If 64-bit file offsets are selected with _FILE_OFFSET_BITS on a 32-bit architecture, the default mmap() call takes a 64-bit off_t, but dlsym() returns a pointer to a function that takes a 32-bit off_t. To fix it: - always call original mmap64() if it is available, - use XSTRINGIFY(mmap) instead of "mmap". The latter is needed, because some systems define mmap as a macro which expands to another identifier. Fixes: ptesarik#80 Signed-off-by: Petr Tesarik <[email protected]>
- Loading branch information
Showing
3 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters