diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-12-23 01:03:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-23 01:03:32 +0100 |
commit | 00f6d352bd4598bdcd6b5c9884430e9e2d6084a6 (patch) | |
tree | a7ba04d40f58c6e3ec3a0975261ecf0d83608353 /pkgs/tools/package-management/libdnf/darwin.patch | |
parent | bc4dab193d97abd7753a6232c2c0037dd19eecaf (diff) | |
parent | 638eefae70a0d8954e043f77a5fc9021d0a8fa25 (diff) |
Merge pull request #107348 from rb2k/microdnf
Diffstat (limited to 'pkgs/tools/package-management/libdnf/darwin.patch')
-rw-r--r-- | pkgs/tools/package-management/libdnf/darwin.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/package-management/libdnf/darwin.patch b/pkgs/tools/package-management/libdnf/darwin.patch new file mode 100644 index 000000000000..56bafb2f7b82 --- /dev/null +++ b/pkgs/tools/package-management/libdnf/darwin.patch @@ -0,0 +1,35 @@ +--- src/libdnf/hy-iutil.cpp 2020-12-02 07:53:42.000000000 -0800 ++++ src/libdnf/hy-iutil.cpp 2020-12-21 14:24:14.000000000 -0800 +@@ -22,7 +22,7 @@ + #include <errno.h> + #include <dirent.h> + #include <fcntl.h> +-#include <linux/limits.h> ++#include <limits.h> + #include <pwd.h> + #include <unistd.h> + #include <stdio.h> +--- src/libdnf/hy-util.cpp 2020-12-02 07:53:42.000000000 -0800 ++++ src/libdnf/hy-util.cpp 2020-12-21 14:23:21.000000000 -0800 +@@ -24,7 +24,20 @@ + #include <ctype.h> + #include <sys/utsname.h> + #include <sys/stat.h> +-#include <sys/auxv.h> ++ ++// Darwin compatibility hacks ++typedef int auxv_t; ++#ifndef AT_HWCAP2 ++#define AT_HWCAP2 26 ++#endif ++#ifndef AT_HWCAP ++#define AT_HWCAP 16 ++#endif ++static unsigned long getauxval(unsigned long type) ++{ ++ unsigned long ret = 0; ++ return ret; ++} + + // hawkey + #include "dnf-types.h" |