diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c
index 267de2e04f6edce4d14529574fd27ef0c194b485..d8583724391aadcc644ea91fac3d9d0015b16e2d 100644 (file)
--- a/plugins/check_hpjd.c
+++ b/plugins/check_hpjd.c
{
int c;
-#ifdef HAVE_GETOPT_H
int option_index = 0;
static struct option long_options[] = {
{"hostname", required_argument, 0, 'H'},
{"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, "+hVH:C:", long_options, &option_index);
-#else
- c = getopt (argc, argv, "+?hVH:C:");
-#endif
if (c == -1 || c == EOF || c == 1)
break;