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
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([GLIB], glib-2.0)

View File

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

View File

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