diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-10 08:25:28 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2017-08-10 22:51:56 +0000 |
commit | feb24153633859502f30bc16b149c78fb1d651b7 (patch) | |
tree | 7bcca7adf40ed72bb51cbc37cb16553944f60619 /mkspecs | |
parent | f4e0ffb11c158908cfc33df1e06fcd032501ef1c (diff) |
Fix write and read-write ioctls on certain 64-bit OS
Using int as the operation parameter was wrong. It meant any write or RW
ioctls (which have the MSB set) would be sign-extended to 64-bit when
calling the native API. Depending on the OS, the upper 32 bits were not
cleared prior to comparing with the call number, resulting in
unexpected errors.
Linux and FreeBSD operated properly; I only got the error on Darwin.
Change-Id: Iaf4157b7efa2416d898cfffd14d985af65c1ff89
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions