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"