]> mj.ucw.cz Git - libucw.git/commitdiff
Revert "Fail when O_DIRECT requested on Darwin"
authorMichal Vaner <vorner@ucw.cz>
Sun, 30 Nov 2008 10:34:10 +0000 (11:34 +0100)
committerMichal Vaner <vorner@ucw.cz>
Sun, 30 Nov 2008 10:34:10 +0000 (11:34 +0100)
This reverts commit 484b0b2bba9332f2a186d05222b03d013cb0630a.

It made no sense.

ucw/perl/UCW/Configure/C.pm

index 4e3fbf90808a6d7f5ac467496f94fc2ac259630e..026aef6fe76da55c29a2cba62e9ae0117aa9b09f 100644 (file)
@@ -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 ###