Skip to content
Snippets Groups Projects
Commit 8401d9df authored by Glauber Costa's avatar Glauber Costa
Browse files

fix linux compat layer typedef

Dear BSD developers: a long is a long, not an int.
Because of that define, the struct linux uses for its ifreq ioctl will
be of a different size (it is fine in 32-bit machines of course), causing
our network requests to get borked.
parent dec50e17
No related branches found
No related tags found
No related merge requests found
...@@ -37,11 +37,11 @@ ...@@ -37,11 +37,11 @@
* Provide a separate set of types for the Linux types. * Provide a separate set of types for the Linux types.
*/ */
typedef int l_int; typedef int l_int;
typedef int32_t l_long; typedef long l_long;
typedef int64_t l_longlong; typedef int64_t l_longlong;
typedef short l_short; typedef short l_short;
typedef unsigned int l_uint; typedef unsigned int l_uint;
typedef uint32_t l_ulong; typedef unsigned long l_ulong;
typedef uint64_t l_ulonglong; typedef uint64_t l_ulonglong;
typedef unsigned short l_ushort; typedef unsigned short l_ushort;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment