forked from zielmicha/leveldb.nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example setup of checking c symbols at compile time
- Loading branch information
1 parent
986ad26
commit dfe142f
Showing
4 changed files
with
58 additions
and
370 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <unistd.h> | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
fdatasync(-1); | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <fcntl.h> | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
int i = F_FULLSYNC; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <fcntl.h> | ||
|
||
int main(int argc, char** argv) | ||
{ | ||
int i = O_CLOEXEC; | ||
return 0; | ||
} | ||
|
Oops, something went wrong.