Bug 317512

Summary: Unable to compile asapcat component on Windows since no fcntl
Product: [Frameworks and Libraries] Akonadi Reporter: Ananta Palani <anantapalani>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: critical CC: dvratil
Priority: NOR    
Version: GIT (master)   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 1.10

Description Ananta Palani 2013-03-28 22:44:37 UTC
The new asapcat component is built on all platforms but will not compile on Windows since there is no fcntl function which breaks asapcat\session.cpp. Removing add_subdirectory(asapcat) from CMakeLists.txt allows akonadi to compile properly.

Reproducible: Always

Steps to Reproduce:
1. Compile akonadi on Windows (fail)
2. Remove 'add_subdirectory(asapcat)' from akonadi CMakeLists.txt
3. Compile akonadi on Windows (success!)
Actual Results:  
Compilation fails

Expected Results:  
Compilation succeeds

Is there Qt solution to fcntl non-blocking pipes? Perhaps for now, if this isn't necessary functionality, asapcat could be disabled for WIN32 until a cross-platform version is available.
Comment 1 Daniel Vrátil 2013-07-31 20:21:25 UTC
Building asapcat on Windows has been disabled (some time ago).

There does not seem to be any simple drop-in alternative to fcntl for Windows, but since it's a developer tool and all devs are using Linux right now, it's probably not a big problem.