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.9.3~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=7d2c6544020d6864593bfcad284ca17faa337739;p=collectd.git bind plugin: Fix building with --enable-standards. --- diff --git a/src/bind.c b/src/bind.c index 63887747..6e0b907f 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"