From 742a513e5f4eeb92648bb29247793735dfe88ac7 Mon Sep 17 00:00:00 2001 From: jbj Date: Sun, 27 Feb 2000 18:52:30 +0000 Subject: Solaris2.6 portability. CVS patchset: 3591 CVS date: 2000/02/27 18:52:30 --- rpm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'rpm.c') diff --git a/rpm.c b/rpm.c index 5b5e946e6..43b47f6ba 100755 --- a/rpm.c +++ b/rpm.c @@ -142,7 +142,9 @@ static struct poptOption optionsTable[] = { { "nodeps", '\0', 0, &noDeps, 0, NULL, NULL}, { "nodirtokens", '\0', POPT_ARG_VAL, &_noDirTokens, 1, NULL, NULL}, { "nogpg", '\0', 0, &noGpg, 0, NULL, NULL}, - { "nolibio", '\0', 0, &noLibio, 0, NULL, NULL}, +#if HAVE_LIBIO_H + { "nolibio", '\0', POPT_ARG_VAL, &noLibio, 1, NULL, NULL}, +#endif { "nomd5", '\0', 0, &noMd5, 0, NULL, NULL}, { "noorder", '\0', 0, &noOrder, 0, NULL, NULL}, { "nopgp", '\0', 0, &noPgp, 0, NULL, NULL}, @@ -595,7 +597,11 @@ int main(int argc, const char ** argv) justdb = 0; noDeps = 0; noGpg = 0; +#if HAVE_LIBIO_H noLibio = 0; +#else + noLibio = 1; +#endif noMd5 = 0; noOrder = 0; noPgp = 0; -- cgit v1.2.3