diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-07-04 09:00:02 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-07-04 09:00:23 +0300 |
commit | 4fad6d9c1587a5716fd0e1483916f05518d30b6b (patch) | |
tree | 8f19f3caae051e46a3978f15acd580184a6a483f /src | |
parent | 608ae57ef7a59f14808bd6df16f7f1bf8fbea584 (diff) | |
download | apk-tools-4fad6d9c1587a5716fd0e1483916f05518d30b6b.tar.gz apk-tools-4fad6d9c1587a5716fd0e1483916f05518d30b6b.tar.bz2 apk-tools-4fad6d9c1587a5716fd0e1483916f05518d30b6b.tar.xz apk-tools-4fad6d9c1587a5716fd0e1483916f05518d30b6b.zip |
solver: use ffs (posix) instead of ffsl (gnu extension)
for musl compatibility
Diffstat (limited to 'src')
-rw-r--r-- | src/solver.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/solver.c b/src/solver.c index e84a09a..bf57380 100644 --- a/src/solver.c +++ b/src/solver.c @@ -11,6 +11,7 @@ #include <stdint.h> #include <unistd.h> +#include <strings.h> #include "apk_defines.h" #include "apk_database.h" #include "apk_package.h" @@ -554,7 +555,7 @@ static int compare_providers(struct apk_solver_state *ss, return r; /* Prefer lowest available repository */ - return ffsl(pkgB->repos) - ffsl(pkgA->repos); + return ffs(pkgB->repos) - ffs(pkgA->repos); } static void inherit_pinning_from_pkg(struct apk_solver_state *ss, struct apk_package *rinstall_if, struct apk_package *parent_pkg) |