projects
/
hashcat.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
54ebe1f
)
enable path resolution on FreeBSD
author
Nikolai Lifanov
<lifanov@mail.lifanov.com>
Wed, 6 Jul 2016 14:33:46 +0000
(10:33 -0400)
committer
Nikolai Lifanov
<lifanov@mail.lifanov.com>
Wed, 6 Jul 2016 14:33:46 +0000
(10:33 -0400)
src/hashcat.c
patch
|
blob
|
history
diff --git
a/src/hashcat.c
b/src/hashcat.c
index
1a70430
..
9c5782d
100644
(file)
--- a/
src/hashcat.c
+++ b/
src/hashcat.c
@@
-6,7
+6,7
@@
* License.....: MIT
*/
* License.....: MIT
*/
-#ifdef DARWIN
+#if defined(DARWIN) || defined(__FreeBSD__)
#include <stdio.h>
#endif
#include <stdio.h>
#endif
@@
-6171,7
+6171,8
@@
int main (int argc, char **argv)
char *exec_path = get_exec_path ();
char *exec_path = get_exec_path ();
- #if defined(LINUX) || defined(__APPLE__)
+
+ #if defined(LINUX) || defined(__APPLE__) || defined(__FreeBSD__)
char *resolved_install_folder = realpath (INSTALL_FOLDER, NULL);
char *resolved_exec_path = realpath (exec_path, NULL);
char *resolved_install_folder = realpath (INSTALL_FOLDER, NULL);
char *resolved_exec_path = realpath (exec_path, NULL);