aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
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: