Skip to content

Commit

Permalink
wip windows: no uname support atm
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Oct 25, 2023
1 parent 378e96a commit 825088a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userspace/falco/app/actions/print_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#ifndef _WIN32
#include <sys/utsname.h>
#endif

#include "actions.h"
#include "../../versions_info.h"
Expand All @@ -34,6 +36,7 @@ static std::string read_file(const std::string &filename)

falco::app::run_result falco::app::actions::print_support(falco::app::state& s)
{
#ifndef _WIN32
if(s.options.print_support)
{
nlohmann::json support;
Expand Down Expand Up @@ -70,6 +73,7 @@ falco::app::run_result falco::app::actions::print_support(falco::app::state& s)

return run_result::exit();
}
#endif

return run_result::ok();
}

0 comments on commit 825088a

Please sign in to comment.