aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-09-26 14:32:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-09-26 14:32:49 +0000
commitb04887513f9f1ddbe509ec67f3dd812612f135a5 (patch)
treee9c47af68b0c0718c9855d7e6a9babbf637da0b3 /options.c
parent2e4e5a1af29d5ce749b90f33db8153c81c6936bf (diff)
downloadfetchmail-b04887513f9f1ddbe509ec67f3dd812612f135a5.tar.gz
fetchmail-b04887513f9f1ddbe509ec67f3dd812612f135a5.tar.bz2
fetchmail-b04887513f9f1ddbe509ec67f3dd812612f135a5.zip
Ready to ship.
svn path=/trunk/; revision=3491
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/options.c b/options.c
index cfe74bbd..c51e9d72 100644
--- a/options.c
+++ b/options.c
@@ -276,9 +276,13 @@ struct query *ctl; /* option record to be initialized */
ctl->smtp_socket = -1;
while (!errflag &&
+#ifdef HAVE_GETOPTLONG
(c = getopt_long(argc,argv,shortoptions,
- longoptions,&option_index)) != -1) {
-
+ longoptions, &option_index)) != -1)
+#else
+ (c = getopt(argc, argv, shortoptions)) != -1)
+#endif
+ {
switch (c) {
case 'V':
case LA_VERSION: