index 94e6e0808102906b48cbbfccb82c5dd0674c91e1..21791ae9f25f7b89db2012872c87368fad8b5669 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
{
int c;
-#ifdef HAVE_GETOPT_H
int option_index = 0;
static struct option longopts[] = {
{"logfile", required_argument, 0, 'F'},
{"help", no_argument, 0, 'h'},
{0, 0, 0, 0}
};
-#endif
if (argc < 2)
return ERROR;
}
while (1) {
-#ifdef HAVE_GETOPT_H
- c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option_index);
-#else
- c = getopt (argc, argv, "hVF:e:a:c:w:");
-#endif
+ c = getopt_long (argc, argv, "hVF:e:a:c:w:", longopts, &option_index);
if (c == -1 || c == EOF)
break;