From 47257ec9e84106fb7132945aef614f6b4f54e1a6 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 17 Sep 2007 15:15:03 +0300 Subject: [PATCH] misc.h is a private header - include it from build/*.c where needed - dont install --- build/build.c | 1 + build/pack.c | 1 + build/parsePrep.c | 1 + build/rpmbuild.h | 1 - lib/Makefile.am | 4 ++-- 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build/build.c b/build/build.c index 10d5d59..a1cea9b 100644 --- a/build/build.c +++ b/build/build.c @@ -7,6 +7,7 @@ #include #include +#include "misc.h" /* XXX for makeTempFile */ #include "debug.h" diff --git a/build/pack.c b/build/pack.c index 981b350..419d40c 100644 --- a/build/pack.c +++ b/build/pack.c @@ -23,6 +23,7 @@ #include "legacy.h" /* XXX providePackageNVR */ #include "signature.h" #include "rpmlead.h" +#include "misc.h" /* XXX for makeTempFile */ #include "debug.h" /** diff --git a/build/parsePrep.c b/build/parsePrep.c index d2d5d3c..cb99c13 100644 --- a/build/parsePrep.c +++ b/build/parsePrep.c @@ -7,6 +7,7 @@ #include #include +#include "misc.h" /* XXX for splitString */ #include "debug.h" /* These have to be global to make up for stupid compilers */ diff --git a/build/rpmbuild.h b/build/rpmbuild.h index 12cf6ab..b65380b 100644 --- a/build/rpmbuild.h +++ b/build/rpmbuild.h @@ -10,7 +10,6 @@ /* and it shouldn't need these :-( */ #include "stringbuf.h" -#include "misc.h" /* but this will be needed */ #include "rpmspec.h" diff --git a/lib/Makefile.am b/lib/Makefile.am index 65bc122..f5bd775 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -19,7 +19,7 @@ check_PROGRAMS = pkgincdir = $(pkgincludedir) pkginc_HEADERS = \ - idtx.h misc.h rpmcli.h rpmlib.h \ + idtx.h rpmcli.h rpmlib.h \ rpmal.h rpmds.h rpmfi.h rpmgi.h rpmps.h rpmte.h rpmts.h \ stringbuf.h @@ -32,7 +32,7 @@ librpm_la_SOURCES = \ rpmal.c rpmchecksig.c rpmds.c rpmfi.c rpmgi.c rpminstall.c \ rpmlead.c rpmlead.h rpmlibprov.c rpmps.c rpmrc.c rpmte.c rpmts.c \ rpmvercmp.c signature.c signature.h stringbuf.c transaction.c \ - verify.c rpmlock.c rpmlock.h + verify.c rpmlock.c rpmlock.h misc.h librpm_la_LDFLAGS = -release 4.4 librpm_la_LIBADD = \ -- 2.7.4