From a273951f70a74db57c09f82bb3b11f65e05daf35 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 24 Feb 2014 11:59:24 +1100 Subject: [PATCH] HAL_Linux: added missing Util.cpp --- libraries/AP_HAL_Linux/Util.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libraries/AP_HAL_Linux/Util.cpp diff --git a/libraries/AP_HAL_Linux/Util.cpp b/libraries/AP_HAL_Linux/Util.cpp new file mode 100644 index 0000000000..c0b075f351 --- /dev/null +++ b/libraries/AP_HAL_Linux/Util.cpp @@ -0,0 +1,23 @@ +#include +#if CONFIG_HAL_BOARD == HAL_BOARD_LINUX +#include +#include +#include +#include +#include + +extern const AP_HAL::HAL& hal; + +#include "Util.h" +using namespace Linux; + +/** + return commandline arguments, if available +*/ +void LinuxUtil::commandline_arguments(uint8_t &argc, char * const *&argv) +{ + argc = saved_argc; + argv = saved_argv; +} + +#endif // CONFIG_HAL_BOARD == HAL_BOARD_LINUX