diff options
Diffstat (limited to 'RPM4/src')
-rw-r--r-- | RPM4/src/RPM4.xs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/RPM4/src/RPM4.xs b/RPM4/src/RPM4.xs index ca75358..99c251e 100644 --- a/RPM4/src/RPM4.xs +++ b/RPM4/src/RPM4.xs @@ -444,7 +444,9 @@ int _specbuild(rpmts ts, rpmSpec spec, SV * sv_buildflags) { rpmBuildFlags buildflags = sv2rpmbuildflags(sv_buildflags); if (buildflags == RPMBUILD_NONE) croak("No action given for build"); #ifdef RPM4_9_0 - return rpmSpecBuild(spec, buildflags); + BTA_t flags = calloc(1, sizeof(*flags)); + flags->buildAmount = buildflags; + return rpmSpecBuild(spec, flags); #else return buildSpec(ts, spec, buildflags, 0); #endif |