diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | expac.c | 6 |
3 files changed, 1 insertions, 10 deletions
@@ -5,9 +5,6 @@ OBJ = ${SRC:.c=.o} all: expac doc -35: - ${MAKE} PMCHECK=-D_HAVE_ALPM_FIND_SATISFIER all - .c.o: ${CC} -c ${CFLAGS} $< @@ -7,6 +7,6 @@ MANPREFIX ?= ${PREFIX}/share/man # compiler flags CC ?= c99 -CPPFLAGS += -DVERSION=\"${VERSION}\" ${PMCHECK} +CPPFLAGS += -DVERSION=\"${VERSION}\" CFLAGS += -std=c99 -g -pedantic -Wall -Wextra ${CPPFLAGS} LDFLAGS += -lalpm @@ -106,11 +106,7 @@ static int alpm_init(void) { return ret; } -#ifdef _HAVE_ALPM_DB_REGISTER_LOCAL - db_local = alpm_db_register_local(); -#else db_local = alpm_option_get_localdb(); -#endif if (!db_local) { return 1; } @@ -510,12 +506,10 @@ static alpm_list_t *resolve_pkg(alpm_list_t *targets) { } pkg = alpm_db_get_pkg(repo, pkgname); -#ifdef _HAVE_ALPM_FIND_SATISFIER /* try to resolve as provide (e.g. awk => gawk) */ if (!pkg) { pkg = alpm_find_satisfier(alpm_db_get_pkgcache(repo), pkgname); } -#endif if (!pkg) { if (verbose) { |