1
mirror of https://github.com/hashcat/hashcat synced 2024-12-01 20:18:12 +01:00

add missing includes for FreeBSD

These were lost during refactoring and found again
in preparation for port update to upcoming 3.20.
This commit is contained in:
Nikolai Lifanov 2016-11-21 17:03:40 -05:00
parent 7ca6a45781
commit 9c937aa3d3
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@ static int pthread_setaffinity_np (pthread_t thread, size_t cpu_size, cpu_set_t
#endif
#if defined (__FreeBSD__)
#include <pthread_np.h>
typedef cpuset_t cpu_set_t;
#endif

View File

@ -50,6 +50,8 @@ static int get_exec_path (char *exec_path, const size_t exec_path_sz)
#elif defined (__FreeBSD__)
#include <sys/sysctl.h>
int mib[4];
mib[0] = CTL_KERN;