From: Maxim Mamontov Date: Mon, 20 Dec 2010 12:16:24 +0000 (+0200) Subject: Виправлено помилки компілязції під FreeBSD4 X-Git-Tag: 2.407-rc3~227 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/7c36dd290e65ef4ad773543ce2641e1c83c28600?ds=sidebyside Виправлено помилки компілязції під FreeBSD4 --- diff --git a/projects/rlm_stg/libradius.h b/projects/rlm_stg/libradius.h index ea35a2a7..4e926bfd 100644 --- a/projects/rlm_stg/libradius.h +++ b/projects/rlm_stg/libradius.h @@ -34,6 +34,9 @@ #include #include "os_int.h" +#ifdef FREE_BSD +#include +#endif #include #include diff --git a/projects/rlm_stg/radiusd.h b/projects/rlm_stg/radiusd.h index 16fab301..a5a61b93 100644 --- a/projects/rlm_stg/radiusd.h +++ b/projects/rlm_stg/radiusd.h @@ -169,6 +169,9 @@ typedef enum RAD_LISTEN_TYPE { RAD_LISTEN_MAX } RAD_LISTEN_TYPE; +#ifdef FREE_BSD +#include +#endif /* * For listening on multiple IP's and ports. diff --git a/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp b/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp index 520aebf7..8d2ce153 100644 --- a/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp +++ b/projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp @@ -32,6 +32,11 @@ #include "configproto.h" #include "blowfish.h" +#ifndef ENODATA +// FreeBSD 4.* - suxx +#define ENODATA -1 +#endif + enum CONF_STATE { confHdr,