]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
use #ifdef HAVE_GETOPT_H instead of #ifdef __linux__
authorThibault Godouet <yo8192@users.noreply.github.com>
Wed, 13 Sep 2000 15:37:43 +0000 (15:37 +0000)
committerThibault Godouet <yo8192@users.noreply.github.com>
Wed, 13 Sep 2000 15:37:43 +0000 (15:37 +0000)
fcron.c

diff --git a/fcron.c b/fcron.c
index 0ca70a6657e19ee529ef4a9dc43aaaa947c5b1cc..9b2871d59bb68602c4468837f6a5d702a7e0d6ed 100644 (file)
--- a/fcron.c
+++ b/fcron.c
  *  `LICENSE' that comes with the fcron source distribution.
  */
 
- /* $Id: fcron.c,v 1.26 2000-09-12 19:52:34 thib Exp $ */
+ /* $Id: fcron.c,v 1.27 2000-09-13 15:37:43 thib Exp $ */
 
 #include "fcron.h"
 
-char rcs_info[] = "$Id: fcron.c,v 1.26 2000-09-12 19:52:34 thib Exp $";
+char rcs_info[] = "$Id: fcron.c,v 1.27 2000-09-13 15:37:43 thib Exp $";
 
 void main_loop(void);
 void check_signal(void);
@@ -205,7 +205,7 @@ parseopt(int argc, char *argv[])
     char c;
     int i;
 
-#ifdef __linux__
+#ifdef HAVE_GETOPT_H
     static struct option opt[] =
     {
        {"debug",0,NULL,'d'},
@@ -215,7 +215,7 @@ parseopt(int argc, char *argv[])
        {"version",0,NULL,'V'},
        {0,0,0,0}
     };
-#endif
+#endif /* HAVE_GETOPT_H */
 
     extern char *optarg;
     extern int optind, opterr, optopt;
@@ -223,11 +223,11 @@ parseopt(int argc, char *argv[])
     /* constants and variables defined by command line */
 
     while(1) {
-#ifdef __linux__
+#ifdef HAVE_GETOPT_H
        c = getopt_long(argc, argv, "dfbhV", opt, NULL);
 #else
        c = getopt(argc, argv, "dfbhV");
-#endif
+#endif /* HAVE_GETOPT_H */
        if (c == -1) break;
        switch (c) {