summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-02-27 18:52:30 +0000
committerjbj <devnull@localhost>2000-02-27 18:52:30 +0000
commit742a513e5f4eeb92648bb29247793735dfe88ac7 (patch)
treeea50b48868004446f18fe132abf1cf50834d909d /rpm.c
parent79940584c97aa8f3f7c8ff027ad79ed8fc7c3ff5 (diff)
downloadrpm-742a513e5f4eeb92648bb29247793735dfe88ac7.tar.gz
rpm-742a513e5f4eeb92648bb29247793735dfe88ac7.tar.bz2
rpm-742a513e5f4eeb92648bb29247793735dfe88ac7.zip
Solaris2.6 portability.
CVS patchset: 3591 CVS date: 2000/02/27 18:52:30
Diffstat (limited to 'rpm.c')
-rwxr-xr-xrpm.c8
1 files changed, 7 insertions, 1 deletions
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;