Define OSMAJOR as the OS major version, and add it to CFLAGS when compiling libpkg sources.
modified libpkg/Makefile
@@ -238,6 +238,7 @@ LIBPKGCFLAGS+= -DDEFAULT_MIRROR_TYPE=${DEFAULT_MIRROR_TYPE} \
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -333,7 +334,8 @@ DEBUG_FLAGS+= -pg
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -340,6 +340,8 @@ typedef enum _pkg_config_key {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -1499,6 +1501,7 @@ typedef int(*pkg_event_cb)(void *, struct pkg_event *);
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/pkg_config.c
@@ -27,6 +27,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -34,6 +35,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -47,6 +50,15 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -94,6 +106,18 @@ static struct config_entry c[] = {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -933,6 +957,30 @@ load_repositories(const char *repodir)
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|