Cheap hack to enable OpenSRF to build on recent glibc systems
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 25 Nov 2008 03:16:13 +0000 (03:16 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 25 Nov 2008 03:16:13 +0000 (03:16 +0000)
(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

src/jserver/osrf_chat.c

index f09d636..ed929d8 100644 (file)
@@ -18,6 +18,10 @@ GNU General Public License for more details.
 #include <stdio.h>
 #include <time.h>
 
+#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