[Opensrf-commits] r1511 - trunk/src/jserver

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Nov 24 22:16:14 EST 2008


Author: dbs
Date: 2008-11-24 22:16:13 -0500 (Mon, 24 Nov 2008)
New Revision: 1511

Modified:
   trunk/src/jserver/osrf_chat.c
Log:
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


Modified: trunk/src/jserver/osrf_chat.c
===================================================================
--- trunk/src/jserver/osrf_chat.c	2008-11-25 02:47:31 UTC (rev 1510)
+++ trunk/src/jserver/osrf_chat.c	2008-11-25 03:16:13 UTC (rev 1511)
@@ -18,6 +18,10 @@
 #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



More information about the opensrf-commits mailing list