Switch pid_t to be defined as int rather than void*
[folly.git] / folly / portability / SysTypes.h
index 0d081fe59cec01000ed0dce791ef879c56987049..60168506f80a4777aaf1a794c98162b18260b4c0 100755 (executable)
 
 #define HAVE_MODE_T 1
 
-// This is actually defined in our pthread implementation on
-// Windows, but we don't want to include all of that just for this.
-using pid_t = void*;
+// This is a massive pain to have be an `int` due to the pthread implementation
+// we support, but it's far more compatible with the rest of the windows world
+// as an `int` than it would be as a `void*`
+using pid_t = int;
 // This isn't actually supposed to be defined here, but it's the most
 // appropriate place without defining a portability header for stdint.h
 // with just this single typedef.