Moved MAX_RECV_LEN into config.h

This commit is contained in:
Polonkai Gergely 2012-03-22 18:49:59 +00:00
parent a8c7a04cfe
commit cf01fddc15
3 changed files with 5 additions and 4 deletions

View File

@ -21,6 +21,7 @@ if test "$enable_memcached" = "yes"; then
fi fi
AC_DEFINE([DEFAULT_PORT], [4000], [The default port number if not specified in the config file]) AC_DEFINE([DEFAULT_PORT], [4000], [The default port number if not specified in the config file])
AC_DEFINE([MAX_RECV_LEN], [1024])
PKG_CHECK_MODULES([GIO], gio-2.0) PKG_CHECK_MODULES([GIO], gio-2.0)
PKG_CHECK_MODULES([GLIB], glib-2.0) PKG_CHECK_MODULES([GLIB], glib-2.0)

View File

@ -10,8 +10,6 @@
#include "interpreter.h" #include "interpreter.h"
#include "db.h" #include "db.h"
#define MAX_RECV_LEN 1024
struct { struct {
char *file; char *file;
int line; int line;

View File

@ -3,14 +3,16 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
#include "main.h" #include "main.h"
#include "networking.h" #include "networking.h"
#include "interpreter.h" #include "interpreter.h"
#include "players.h" #include "players.h"
#include "db.h" #include "db.h"
#define MAX_RECV_LEN 1024
struct AcceptData { struct AcceptData {
GMainContext *context; GMainContext *context;
GSocketListener *listener; GSocketListener *listener;