The following proposed patch for stable 3.1, workaround a bug in the APR
headers in 32bit Linux that rely in off64_t being defined, which is only
the case when _LARGEFILE64_SOURCE is defined, failing otherwise with :

  /usr/include/apr-1.0/apr.h:273: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'apr_off_t'

Contains changes from r1488

Carlo
---
Index: include/gm_metric.h
===================================================================
--- include/gm_metric.h (revision 1495)
+++ include/gm_metric.h (working copy)
@@ -1,5 +1,10 @@
 #ifndef GM_METRIC_H
 #define GM_METRIC_H 1
+
+#ifndef _LARGEFILE64_SOURCE
+#define _LARGEFILE64_SOURCE
+#endif
+
 #include <rpc/rpc.h>
 
 #include "gm_mmn.h"
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to