From: Maxim Mamontov <faust.madf@gmail.com> Date: Thu, 29 May 2014 20:34:24 +0000 (+0300) Subject: Fixed compilation on *BSD systems. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/e7ccd2b51d13d9900fb3e841c13562e57448b279?ds=sidebyside;hp=feed7e6b905650306ae3166ecf91c144ecffa6e7 Fixed compilation on *BSD systems. --- diff --git a/projects/sgconf/main.cpp b/projects/sgconf/main.cpp index 22e998f3..0715b7b1 100644 --- a/projects/sgconf/main.cpp +++ b/projects/sgconf/main.cpp @@ -35,9 +35,10 @@ #include <iostream> #include <cstdlib> // getenv -#include <cstring> // basename +#include <cstring> // str* #include <unistd.h> // access +#include <libgen.h> // basename namespace {