Opened 14 years ago
Closed 14 years ago
#9630 closed Patch - Bug Fix (Fixed)
[PATCH] commit 361f213a (Converted jobqueue threads to QThread) breaks Windows build
Reported by: | Owned by: | beirdo | |
---|---|---|---|
Priority: | minor | Milestone: | 0.25 |
Component: | MythTV - General | Version: | Master Head |
Severity: | medium | Keywords: | Windows |
Cc: | Ticket locked: | no |
Description
Commit 361f213a2e0a82f0465d28b731ab472a2f47c482 breaks the Windows build:
- jobqueue.cpp:185: error: ‘pthread_testcancel’ was not declared in this scope
- jobqueue.cpp:1696: error: ‘class ChildJobThread?’ has no member named ‘SetJobA’
The attached patch fixes these.
- Remove superfluous pthread_testcancel
- #undef SetJob? which is #defined in windows.h
NB This is a reminder that before including windows/h that we should be defing WIN32_LEAN_AND_MEAN
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Fixed in e887abeafcde33887e01
NB I tried the WIN32_LEAN_AND_MEAN approach and it broke compilation in at least 3 places before I decided the obvious fix was the patch of least resistance at this time.