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
......@@ -58,6 +58,7 @@
#include <sys/stat.h> /* S_IWRITE */
/* Synchronet-specific headers */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h"
#include "text.h" /* TOTAL_TEXT */
#include "ftpsrvr.h"
......
......@@ -57,6 +57,7 @@
#include <errno.h> /* errno */
/* Synchronet-specific headers */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h"
#include "mailsrvr.h"
#include "mime.h"
......
......@@ -45,6 +45,7 @@
#endif
/* Synchronet-specific headers */
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h" /* load_cfg() */
#include "sbbs_ini.h" /* sbbs_read_ini() */
#include "ftpsrvr.h" /* ftp_startup_t, ftp_server */
......
......@@ -64,6 +64,7 @@
#define JAVASCRIPT /* required to include JS API headers */
#endif
#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 "services.h"
#include "ident.h" /* identify() */
......
......@@ -97,6 +97,7 @@
#define JAVASCRIPT
#endif
#undef SBBS /* this shouldn't be defined unless building sbbs.dll/libsbbs.so */
#include "sbbs.h"
#include "sockwrap.h" /* sendfilesocket() */
#include "threadwrap.h" /* pthread_mutex_t */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment