From fd159f62cd1b503f18ec5ddd44a1a59a8574997e Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Mon, 18 May 2015 11:11:28 +0200 Subject: [PATCH] Fix build on Linux. --- tester/log_collection_tester.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tester/log_collection_tester.c b/tester/log_collection_tester.c index 14c57674d..3d55075c7 100644 --- a/tester/log_collection_tester.c +++ b/tester/log_collection_tester.c @@ -16,9 +16,8 @@ along with this program. If not, see . */ -#ifndef __USE_XOPEN - /*on Debian OS, time.h does declare strptime only if __USE_XOPEN is declared */ - #define __USE_XOPEN +#ifndef _XOPEN_SOURCE + #define _XOPEN_SOURCE 700 // To have definition of strptime, snprintf and getline #endif #include #include "linphonecore.h"