From b508d40a8771c57e5688aa6a25b600c69ebfa3a6 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sun, 30 Nov 2008 11:34:10 +0100 Subject: [PATCH] Revert "Fail when O_DIRECT requested on Darwin" This reverts commit 484b0b2bba9332f2a186d05222b03d013cb0630a. It made no sense. --- ucw/perl/UCW/Configure/C.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index 4e3fbf90..026aef6f 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -256,11 +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 - if(IsGiven("O_DIRECT") && IsSet("O_DIRECT") && (Get("O_DIRECT") != 0)) - { - Fail("Darwin does not support direct IO"); - } - Set("O_DIRECT" => 0); + Set("O_DIRECT" => 0); # Darwin doesn't support direct IO, so make Sherlock at least compilable } ### Writing C headers with configuration ### -- 2.39.2