1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-18 12:48:18 +00:00

Merge pull request #609 from lifanov/master

add missing includes for FreeBSD
This commit is contained in:
Jens Steube 2016-11-22 18:04:13 +01:00 committed by GitHub
commit 3bd2f861d7
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 #endif
#if defined (__FreeBSD__) #if defined (__FreeBSD__)
#include <pthread_np.h>
typedef cpuset_t cpu_set_t; typedef cpuset_t cpu_set_t;
#endif #endif

View File

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