diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c
index 5c4cd4a3a7d769126b7bea5df1d25f45a612c4e4..649bec4317b92272734e2a7a3b93a22c012f01ac 100644 (file)
--- a/plugins/check_nagios.c
+++ b/plugins/check_nagios.c
{
int c;
-#ifdef HAVE_GETOPT_H
int option_index = 0;
static struct option long_options[] = {
{"filename", 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:C:e:", long_options, &option_index);
-#else
- c = getopt (argc, argv, "+hVF:C:e:");
-#endif
if (c == -1 || c == EOF || c == 1)
break;