summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-12-23 14:02:19 +0200
committerPanu Matilainen <pmatilai@redhat.com>2009-12-23 14:02:19 +0200
commit2553ca2fe32f848c5a328ff996e627cc73249f18 (patch)
tree27251843027164e13ea3d7dd99d8568ac839016e /rpmio
parent2753a5e93441320a89b936a91a88a2576ae0db9a (diff)
downloadrpm-2553ca2fe32f848c5a328ff996e627cc73249f18.tar.gz
rpm-2553ca2fe32f848c5a328ff996e627cc73249f18.tar.bz2
rpm-2553ca2fe32f848c5a328ff996e627cc73249f18.zip
Move getopt() portability fiddles out of system.h
- only macro.c needs, no point polluting includes everywhere
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/macro.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rpmio/macro.c b/rpmio/macro.c
index 11e23a3aa..f12091f0c 100644
--- a/rpmio/macro.c
+++ b/rpmio/macro.c
@@ -4,6 +4,12 @@
#include "system.h"
#include <stdarg.h>
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#else
+extern char *optarg;
+extern int optind;
+#endif
#if !defined(isblank)
#define isblank(_c) ((_c) == ' ' || (_c) == '\t')