From 4b7c49e9426aea3c8f3b3c78d1ea427ffc358b89 Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Sun, 2 May 2010 22:25:21 +0200 Subject: [PATCH] osol compilation fix, thx tg --- src/Makefile.in | 4 +++- src/util/erq/erq.c | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Makefile.in b/src/Makefile.in index bcc917c..fb7e9df 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -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@ # diff --git a/src/util/erq/erq.c b/src/util/erq/erq.c index 36a89c2..b5e4c4c 100644 --- a/src/util/erq/erq.c +++ b/src/util/erq/erq.c @@ -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