I define O_DIRECT flag to be 0 on Darwin, hence enabling direct IO will
have no effect. This ignoring will be silent. A clean solution (with
failure when enabled by the user) would be much more complicated and I just
wanna make Sherlock compilable on Darwin for desktop/debugging usage.
Append("COPT" => "-I/sw/include");
# Fill in some constants not found in the system header files
Set("SOL_TCP" => 6); # missing in /usr/include/netinet/tcp.h
+ Set("O_DIRECT" => 0); # Darwin doesn't support direct IO, so make Sherlock at least compilable
}
### Writing C headers with configuration ###