Replace <sys/types.h> with <QtGlobal> for ulong definition
ClosedPublic

Authored by conet on Jan 23 2018, 3:01 PM.

Details

Summary

On macOS <sys/types.h> does not contain a typedef for ulong.

Test Plan

Built on macOS.

Diff Detail

Repository
R261 KMyMoney
Lint
Lint Skipped
Unit
Unit Tests Skipped
conet requested review of this revision.Jan 23 2018, 3:01 PM
conet created this revision.

What about the entry in kmymoney/misc/platformtools.h ? I changed it here as well and it compiled fine. Can you add that one as well?

wojnilowicz accepted this revision.Jan 23 2018, 5:26 PM
This revision is now accepted and ready to land.Jan 23 2018, 5:26 PM
conet added a comment.Jan 23 2018, 9:58 PM

I was planning to replace also that definition but somehow thought that I can't because it does not depend on QtCore, I see now that I was wrong, going to update the patch.

conet updated this revision to Diff 25850.Jan 23 2018, 10:10 PM

Please review the new diff. I removed all traces of <sys/types.h> and removed the defined from config-kmymoney.h.cmake which were not used anymore.

Where should I push this? To master and cherry pick in 5.x or to 5.x and merge into master?

tbaumgart accepted this revision.Jan 24 2018, 6:56 AM

Land it onto the 5.0 branch. No need for an instant merge. I plan to do that later this week (together with all the other fixes we have so far).

conet closed this revision.EditedJan 24 2018, 7:17 AM

Pushed as https://commits.kde.org/kmymoney/207a463a14bbc0fd7d7cf7111fec2ea1f8d1826d sorry, I missed the 'Differential Revision' keyword.