osol compilation fix, thx tg

This commit is contained in:
psyc://psyced.org/~lynX 2010-05-02 22:25:21 +02:00
parent 1be5683de1
commit 4b7c49e942
2 changed files with 7 additions and 3 deletions

View File

@ -84,7 +84,9 @@ SFMT_FLAGS = -fno-strict-aliasing
#
MPATH=-DMUD_LIB='"$(MUD_LIB)"' -DBINDIR='"$(BINDIR)"' -DERQ_DIR='"$(ERQ_DIR)"'
#
CFLAGS=-DPROGNAME='"@PROGNAME@"' @EXTRA_CFLAGS@ $(OPTIMIZE) $(DEBUG) $(WARN) $(MPATH) $(PROFIL)
# would be nicer to have this idn include in autoconf but it shouldn't hurt
# here either.. it makes this compile on OpenSolaris.. --lynX via tg 2010
CFLAGS=-DPROGNAME='"@PROGNAME@"' @EXTRA_CFLAGS@ $(OPTIMIZE) $(DEBUG) $(WARN) $(MPATH) $(PROFIL) -I/usr/include/idn
#
LIBS=@LIBS@ @PKGLIBS@
#

View File

@ -146,8 +146,10 @@ typedef int length_t;
#define MAX_REPLY ERQ_MAX_REPLY
/* don't know about the rfcs but here
* hostnames are limited to 128 chars --lynX */
/* hostnames are limited to 128 chars
* as the purpose of longer hostnames
* is likely to be either spamming or
* hostname-based attacks --lynX */
#define MAX_HOSTNAME 128