From 101c7c008fee8c3386628bce49af14b58845c69b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathijs=20M=C3=B6hlmann?= Date: Tue, 22 Mar 2011 14:26:47 +0100 Subject: [PATCH] configure: Define _REENTRANT when compiling on Solaris. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On Wed, Mar 16, 2011 at 10:35:07AM +0100, Mathijs Möhlmann wrote: > I'm using collectd 4.10.2 on Solaris 10 (gcc 3.4.6). Sometimes when I > start with a clean rrd directory or add a host the .rrd file (rrdtools > plugin) don't get created and I get the following message: > > collectd[2996]: [ID 702911 daemon.error] stat(/usr/local/var/lib/collectd/rrd/asterix/load/load.rrd) failed: Bad file number This patch fixes this. Signed-off-by: Sebastian Harl --- configure.in | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.in b/configure.in index 84a30408..b5c3e29d 100644 --- a/configure.in +++ b/configure.in @@ -91,6 +91,7 @@ fi if test "x$ac_system" = "xSolaris" then AC_DEFINE(_POSIX_PTHREAD_SEMANTICS, 1, [Define to enforce POSIX thread semantics under Solaris.]) + AC_DEFINE(_REENTRANT, 1, [Define to enable reentrancy interfaces.]) fi if test "x$ac_system" = "xAIX" then -- 2.30.2