From: Maxim Mamontov Date: Sat, 18 Dec 2010 21:03:05 +0000 (+0200) Subject: Виправлено помилки компіляції на FreeBSD4 X-Git-Tag: 2.407-rc3~234 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/56ffdca636bfde338300a1ef6e0114ae1fc0373b Виправлено помилки компіляції на FreeBSD4 --- diff --git a/include/user_ips.h b/include/user_ips.h index f160a31a..250520b2 100644 --- a/include/user_ips.h +++ b/include/user_ips.h @@ -27,16 +27,19 @@ #ifndef USER_IPS_H #define USER_IPS_H +#ifdef FREE_BSD +#include +#endif + +#include +#include +#include + +#include #include -//#include #include #include #include -#include -///////////////////////// -#include -#include -#include #include "common.h" #include "os_int.h" diff --git a/projects/stargazer/plugins/store/files/file_store.cpp b/projects/stargazer/plugins/store/files/file_store.cpp index 36c50f58..c147935d 100644 --- a/projects/stargazer/plugins/store/files/file_store.cpp +++ b/projects/stargazer/plugins/store/files/file_store.cpp @@ -30,7 +30,6 @@ #include #include -#include #include #include #include diff --git a/projects/stargazer/plugins/store/files/file_store.h b/projects/stargazer/plugins/store/files/file_store.h index dbca0f20..361a4d2a 100644 --- a/projects/stargazer/plugins/store/files/file_store.h +++ b/projects/stargazer/plugins/store/files/file_store.h @@ -29,6 +29,7 @@ #define FILE_STORE_H #include +#include #include diff --git a/stglibs/common.lib/common.cpp b/stglibs/common.lib/common.cpp index b8d2b0e2..3ad1eb5a 100644 --- a/stglibs/common.lib/common.cpp +++ b/stglibs/common.lib/common.cpp @@ -54,6 +54,10 @@ #include #endif*/ +#ifdef FREE_BSD +#include +#endif + #include #include #include diff --git a/stglibs/common.lib/common.h b/stglibs/common.lib/common.h index 7761d183..6e957698 100644 --- a/stglibs/common.lib/common.h +++ b/stglibs/common.lib/common.h @@ -27,7 +27,11 @@ #ifndef common_h #define common_h +#ifdef __BORLANDC__ +#include +#else #include +#endif #include #include "os_int.h" diff --git a/stglibs/conffiles.lib/conffiles.cpp b/stglibs/conffiles.lib/conffiles.cpp index 6b462ee0..f839f7c5 100644 --- a/stglibs/conffiles.lib/conffiles.cpp +++ b/stglibs/conffiles.lib/conffiles.cpp @@ -36,6 +36,7 @@ #include // E* #include #include +#include #include diff --git a/stglibs/dotconfpp.lib/dotconfpp.cpp b/stglibs/dotconfpp.lib/dotconfpp.cpp index b82ae818..16bea3b1 100644 --- a/stglibs/dotconfpp.lib/dotconfpp.cpp +++ b/stglibs/dotconfpp.lib/dotconfpp.cpp @@ -397,6 +397,7 @@ int DOTCONFDocument::setContent(const char * _fileName) case GLOB_NOSPACE: error(tagNode->lineNum, tagNode->fileName, "glob call failed for '%s': no free space", nodeFilePath.c_str()); return -1; +#ifndef FREE_BSD case GLOB_ABORTED: // printf("Read error\n"); // Ignore that error @@ -405,6 +406,7 @@ int DOTCONFDocument::setContent(const char * _fileName) // printf("No match\n"); // Ignore that error break; +#endif default: error(tagNode->lineNum, tagNode->fileName, "glob call failed for '%s': unknown error", nodeFilePath.c_str()); return -1;