From 0f2fe2a049521c4b43f446794f23ebb989ddd606 Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Thu, 27 Nov 2008 07:51:41 -0800 Subject: [PATCH] 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. --- ucw/perl/UCW/Configure/C.pm | 1 + 1 file changed, 1 insertion(+) 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 ### -- 2.39.2