From: dbs Date: Tue, 25 Nov 2008 03:16:13 +0000 (+0000) Subject: Cheap hack to enable OpenSRF to build on recent glibc systems X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0ac6ad2d3d908ee089396638c28438fdf4238cda;p=opensrf%2Fbjwebb.git Cheap hack to enable OpenSRF to build on recent glibc systems (already in use in src/libopensrf/osrf_system.c) Seems to stem from HOST_NAME_MAX moving from /usr/include/sys/param.h to /usr/include/bits/local_lim.h git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1511 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/jserver/osrf_chat.c b/src/jserver/osrf_chat.c index f09d636..ed929d8 100644 --- a/src/jserver/osrf_chat.c +++ b/src/jserver/osrf_chat.c @@ -18,6 +18,10 @@ GNU General Public License for more details. #include #include +#ifndef HOST_NAME_MAX +#define HOST_NAME_MAX 256 +#endif + static int osrfChatXMLErrorOcurred = 0; /* This is used by code in osrfChatPushData, but that code is