-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect if _FILE_OFFSET_BITS=64 is required at configuration time via …
…try_compile
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifdef __linux__ | ||
#include <fcntl.h> | ||
#endif // __linux__ | ||
|
||
int main (int argc, char * argv[]) { | ||
#ifndef F_OFD_SETLKW | ||
#error F_OFD_SETLKW is not defined; try building with -D_FILE_OFFSET_BITS=64 | ||
#endif // F_OFD_SETLKW | ||
return 0; | ||
} |
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