From 9cb0816e28d106a6474472aa61c081890cef2b77 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Tue, 16 Dec 2008 12:13:44 +0000 Subject: [PATCH] 4f10 --- spec2make.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/spec2make.c b/spec2make.c index a0144f18..a32f4fdc 100644 --- a/spec2make.c +++ b/spec2make.c @@ -20,6 +20,15 @@ #include #include +/* from f10 and up, Spec is renamed rpmSpec */ +#ifndef _RPMTYPES_H +#define rpmSpec Spec +#endif + +#ifndef PATH_MAX +#include +#endif + extern size_t strnlen(const char *s, size_t maxlen); /* the structure describing the options we take and the defaults */ @@ -34,7 +43,7 @@ static struct poptOption optionsTable[] = { }; /* Stolen from rpm/build/spec.c:rpmspecQuery() */ -Spec +rpmSpec rpmspecGet(rpmts ts, const char * arg) { char * buildRoot = NULL; @@ -59,7 +68,7 @@ main(int argc, char *argv[]) poptContext context; rpmts ts = NULL; int ec = 0; - Spec spec; + rpmSpec spec; struct Source *source; Package pkg; const char *name, *version, *release, *arch, *unused; -- 2.43.0