diff --git a/src/apps/bin/query.cpp b/src/apps/bin/query.cpp index c4356d492f..f97c9288b8 100644 --- a/src/apps/bin/query.cpp +++ b/src/apps/bin/query.cpp @@ -12,6 +12,8 @@ #include #include #include +#include + #include #include #include @@ -21,13 +23,6 @@ #include -extern "C" { - // ToDo: include the correct header - int32 getopt(int32, const char **, const char *); - extern char *optarg; - extern int32 optind; -} - // Option variables. bool o_all_volumes = false; // Query all volumes? bool o_escaping = true; // Escape metacharacters? @@ -89,7 +84,7 @@ main(int32 argc, const char **argv) strcpy(volumePath, "."); // Parse command-line arguments. - int32 opt; + int opt; while ((opt = getopt(argc, argv, "eav:")) != -1) { switch(opt) { case 'a':