From 7c36dd290e65ef4ad773543ce2641e1c83c28600 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 20 Dec 2010 14:16:24 +0200 Subject: [PATCH] =?utf8?q?=D0=92=D0=B8=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5?= =?utf8?q?=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BC=D0=B8=D0=BB=D0=BA=D0=B8=20?= =?utf8?q?=D0=BA=D0=BE=D0=BC=D0=BF=D1=96=D0=BB=D1=8F=D0=B7=D1=86=D1=96?= =?utf8?q?=D1=97=20=D0=BF=D1=96=D0=B4=20FreeBSD4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- projects/rlm_stg/libradius.h | 3 +++ projects/rlm_stg/radiusd.h | 3 +++ projects/stargazer/plugins/configuration/sgconfig/rsconf.cpp | 5 +++++ 3 files changed, 11 insertions(+) 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, -- 2.43.2