Skip to content
Snippets Groups Projects
Commit 64283d35 authored by rswindell's avatar rswindell
Browse files

Work-around problem in src/sbbs3/GNUmakefile:

Macros in sbbsdefs.mk should only be defined when building libsbbs.so. This is
the cause of the "static declaration of 'x' follows non-static declaration" GCC
warnings. While harmless warnings now, in GCC 3.5, this condition has been
elevated to a compile error. :-(
The real fix needs to be made in GNUmakefile someday (Deuce). :-)
parent 79e88e65
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
#include <sys/stat.h> /* S_IWRITE */ #include <sys/stat.h> /* S_IWRITE */
/* Synchronet-specific headers */ /* Synchronet-specific headers */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h" #include "sbbs.h"
#include "text.h" /* TOTAL_TEXT */ #include "text.h" /* TOTAL_TEXT */
#include "ftpsrvr.h" #include "ftpsrvr.h"
......
...@@ -57,6 +57,7 @@ ...@@ -57,6 +57,7 @@
#include <errno.h> /* errno */ #include <errno.h> /* errno */
/* Synchronet-specific headers */ /* Synchronet-specific headers */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h" #include "sbbs.h"
#include "mailsrvr.h" #include "mailsrvr.h"
#include "mime.h" #include "mime.h"
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#endif #endif
/* Synchronet-specific headers */ /* Synchronet-specific headers */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h" /* load_cfg() */ #include "sbbs.h" /* load_cfg() */
#include "sbbs_ini.h" /* sbbs_read_ini() */ #include "sbbs_ini.h" /* sbbs_read_ini() */
#include "ftpsrvr.h" /* ftp_startup_t, ftp_server */ #include "ftpsrvr.h" /* ftp_startup_t, ftp_server */
......
...@@ -64,6 +64,7 @@ ...@@ -64,6 +64,7 @@
#define JAVASCRIPT /* required to include JS API headers */ #define JAVASCRIPT /* required to include JS API headers */
#endif #endif
#define SERVICES_INI_BITDESC_TABLE /* required to defined service_options */ #define SERVICES_INI_BITDESC_TABLE /* required to defined service_options */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h" #include "sbbs.h"
#include "services.h" #include "services.h"
#include "ident.h" /* identify() */ #include "ident.h" /* identify() */
......
...@@ -97,6 +97,7 @@ ...@@ -97,6 +97,7 @@
#define JAVASCRIPT #define JAVASCRIPT
#endif #endif
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h" #include "sbbs.h"
#include "sockwrap.h" /* sendfilesocket() */ #include "sockwrap.h" /* sendfilesocket() */
#include "threadwrap.h" /* pthread_mutex_t */ #include "threadwrap.h" /* pthread_mutex_t */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment