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

for musl compatibility
cute-signatures
Timo Teräs 2013-07-04 09:00:02 +03:00
parent 608ae57ef7
commit 4fad6d9c15
1 changed files with 2 additions and 1 deletions

View File

@ -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)