diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-02-07 13:35:41 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-02-07 21:36:10 +0000 |
commit | 0e74fbb4281d3b4fac812d04004c1668cbf903ab (patch) | |
tree | 7ee39c2413b0896ae617c3d73ce5918b81f3451b /wsutil | |
parent | 1185fbab426830a04a5fa2042c656666efc3a3f3 (diff) | |
download | wireshark-0e74fbb4281d3b4fac812d04004c1668cbf903ab.tar.gz |
Make sure pid_t is defined.
Just as we include <windows.h> on Windows to get HANDLE defined, include
<sys/types.h> on UN*X to get pid_t defined.
We don't seem to need this (yet) on the master and 2.2 branches, but it
looks as if it might be necessary on the 2.0 branch. Do it everywhere.
Change-Id: I9535fa9944265746d332f8dc337e42a020b503d3
Reviewed-on: https://code.wireshark.org/review/19998
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/processes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsutil/processes.h b/wsutil/processes.h index 60ccd600af..6fb963ed39 100644 --- a/wsutil/processes.h +++ b/wsutil/processes.h @@ -42,7 +42,10 @@ typedef HANDLE ws_process_id; #else /* * On UN*X, a process ID is a pid_t. + * Include <sys/types.h> to make sure pid_t is defined. */ +#include <sys/types.h> + typedef pid_t ws_process_id; #define WS_INVALID_PID -1 |