fix(net): make sure WITH_LIBNL is defined before checking

This commit is contained in:
NBonaparte 2018-11-01 11:36:41 -07:00 committed by Patrick Ziegler
parent 01f4957485
commit 07d35df538

View file

@ -6,6 +6,12 @@
#include <arpa/inet.h>
#include <ifaddrs.h>
#include "common.hpp"
#include "settings.hpp"
#include "errors.hpp"
#include "components/logger.hpp"
#include "utils/math.hpp"
#if WITH_LIBNL
#include <net/if.h>
@ -24,12 +30,6 @@ struct nlattr;
#endif
#endif
#include "common.hpp"
#include "settings.hpp"
#include "errors.hpp"
#include "components/logger.hpp"
#include "utils/math.hpp"
POLYBAR_NS
class file_descriptor;