Skip to content

Commit

Permalink
example setup of checking c symbols at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
benbierens committed May 15, 2024
1 parent 986ad26 commit dfe142f
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 370 deletions.
8 changes: 8 additions & 0 deletions tests/compileme.c
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;
}

8 changes: 8 additions & 0 deletions tests/compileme2.c
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;
}

8 changes: 8 additions & 0 deletions tests/compileme3.c
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;
}

Loading

0 comments on commit dfe142f

Please sign in to comment.