From: Florian Forster Date: Sun, 13 Jun 2010 13:50:48 +0000 (+0200) Subject: bind plugin: Fix building with --enable-standards. X-Git-Tag: collectd-4.10.1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d2c6544020d6864593bfcad284ca17faa337739;p=thirdparty%2Fcollectd.git bind plugin: Fix building with --enable-standards. --- diff --git a/src/bind.c b/src/bind.c index 638877472..6e0b907f1 100644 --- a/src/bind.c +++ b/src/bind.c @@ -21,7 +21,11 @@ * Florian Forster **/ -#define _XOPEN_SOURCE 600 /* glibc2 needs this for strptime */ +#include "config.h" + +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 600 /* glibc2 needs this for strptime */ +#endif #include "collectd.h" #include "common.h"