index 869f7dc0a76eac3f874e8d25d0d30abea4fe7eee..47d9d840467362373263a7d299eb5c8fd567ee51 100644 (file)
#include <unistd.h>
#include <linux/hdreg.h>
#include <linux/types.h>
-#include <getopt.h>
#include <errno.h>
#define NR_ATTRIBUTES 30
int o, longindex;
int retval = 0;
-#ifdef HAVE_GETOPT_H
const struct option longopts[] = {
{"device", required_argument, 0, 'd'},
{"immediate", no_argument, 0, 'i'},
{"version", no_argument, 0, 'V'}, {0, 0, 0, 0}
};
-#endif /* */
while (1) {
-#ifdef HAVE_GETOPT_H
o = getopt_long (argc, argv, "+d:iq10nhV", longopts, &longindex);
-#else /* */
- o = getopt (argc, argv, "+d:iq10nhV");
-
-#endif /* */
if (o == -1 || o == EOF)
break;
switch (o) {