commit | 50daf77fa8c95ff3a3928527954be472239e0b17 | [log] [tgz] |
---|---|---|
author | Stephen Wilson <wilsons@start.ca> | Fri Mar 25 18:16:28 2011 +0000 |
committer | Stephen Wilson <wilsons@start.ca> | Fri Mar 25 18:16:28 2011 +0000 |
tree | 0182de549612166bdeeb569063d679cf29a05225 | |
parent | 149731c0b267e5b6cd7192cbfac0c7f457ae5cfc [diff] [blame] |
Simple fixes for the gdb remote process plugin on Linux. git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@128291 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index e5a1d7c..49f9aa6 100644 --- a/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -10,6 +10,7 @@ // C Includes #include <errno.h> #include <spawn.h> +#include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> @@ -56,7 +57,7 @@ static inline uint16_t get_random_port () { - return (arc4random() % (UINT16_MAX - 1000u)) + 1000u; + return (rand() % (UINT16_MAX - 1000u)) + 1000u; }