Skip to content

Commit dfe142f

Browse files
committed
example setup of checking c symbols at compile time
1 parent 986ad26 commit dfe142f

File tree

4 files changed

+58
-370
lines changed

4 files changed

+58
-370
lines changed

tests/compileme.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <unistd.h>
2+
3+
int main(int argc, char** argv)
4+
{
5+
fdatasync(-1);
6+
return 0;
7+
}
8+

tests/compileme2.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <fcntl.h>
2+
3+
int main(int argc, char** argv)
4+
{
5+
int i = F_FULLSYNC;
6+
return 0;
7+
}
8+

tests/compileme3.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <fcntl.h>
2+
3+
int main(int argc, char** argv)
4+
{
5+
int i = O_CLOEXEC;
6+
return 0;
7+
}
8+

0 commit comments

Comments
 (0)