void-packages/srcpkgs/hashcat/patches/musl.patch

21 lines
353 B
Diff

diff --git src/hashcat-cli.c src/hashcat-cli.c
index 8c9c951..c2b53ed 100644
--- src/hashcat-cli.c
+++ src/hashcat-cli.c
@@ -17,7 +17,7 @@
// for interactive status prompt
#ifdef POSIX
-#ifndef OSX
+#ifdef __GLIBC__
#include <termio.h>
@@ -25,6 +25,7 @@
#include <termios.h>
#include <sys/ioctl.h>
+#define termio termios
#endif
#endif