diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c
index 8abb1dd..eee159b 100644
--- a/bsd-user/elfload.c
+++ b/bsd-user/elfload.c
@@ -999,9 +999,9 @@ static abi_ulong create_elf_tables(abi_ulong p, int argc, int envc,
         NEW_AUX_ENT(AT_EUID, (abi_ulong) geteuid());
         NEW_AUX_ENT(AT_GID, (abi_ulong) getgid());
         NEW_AUX_ENT(AT_EGID, (abi_ulong) getegid());
+#ifndef __FreeBSD__
         NEW_AUX_ENT(AT_HWCAP, (abi_ulong) ELF_HWCAP);
         NEW_AUX_ENT(AT_CLKTCK, (abi_ulong) sysconf(_SC_CLK_TCK));
-#ifndef __FreeBSD__
         if (k_platform)
             NEW_AUX_ENT(AT_PLATFORM, u_platform);
 #endif
