Commit 4fad6d9c authored by Timo Teräs's avatar Timo Teräs

solver: use ffs (posix) instead of ffsl (gnu extension)

for musl compatibility
parent 608ae57e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment