| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/net-mgmt/aircrack-ng/files/ |
Upload File : |
--- src/aircrack-util/trampoline_ppc.c.orig 2019-07-19 18:16:49 UTC
+++ src/aircrack-util/trampoline_ppc.c
@@ -19,8 +19,10 @@
#if defined(__ppc__) || defined(__PPC__)
#ifdef HAS_AUXV
#include <sys/auxv.h>
+#ifndef __FreeBSD__
#include <bits/hwcap.h>
#endif
+#endif
#else
#error "The wrong CPU architecture file has been included."
#endif
@@ -35,7 +37,12 @@ int simd_get_supported_features(void)
{
int result = 0;
#ifdef HAS_AUXV
+#ifndef __FreeBSD__
long hwcaps = getauxval(AT_HWCAP2);
+#else
+ u_long hwcaps;
+ elf_aux_info(AT_HWCAP2, &hwcaps, sizeof(hwcaps));
+#endif
#if defined(PPC_FEATURE2_ARCH_2_07)
if (hwcaps & PPC_FEATURE2_ARCH_2_07)