From: Robert Spalek Date: Thu, 27 Nov 2008 15:51:41 +0000 (-0800) Subject: make Sherlock compilable on Darwin without hacks due to missing direct IO X-Git-Tag: holmes-import~137 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=01d529017638881377fae3e78ec86ee2b71f0779;p=libucw.git make Sherlock compilable on Darwin without hacks due to missing direct IO 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. --- diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index cc42df21..026aef6f 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -256,6 +256,7 @@ if (IsSet("CONFIG_DARWIN")) { 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 ###