From: Thierry Parmentelat Date: Tue, 16 Dec 2008 12:13:44 +0000 (+0000) Subject: 4f10 X-Git-Tag: 4.3-rc1~113 X-Git-Url: http://git.onelab.eu/?p=build.git;a=commitdiff_plain;h=9cb0816e28d106a6474472aa61c081890cef2b77 4f10 --- 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;