diff options
Diffstat (limited to 'src/logging.c')
| -rw-r--r-- | src/logging.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/logging.c b/src/logging.c index 147b1fb7..1dfd4847 100644 --- a/src/logging.c +++ b/src/logging.c @@ -356,6 +356,7 @@ static void _output(struct log_target *target, unsigned int subsys,  	}  	if (!cont) {  		if (target->print_ext_timestamp) { +#ifdef HAVE_LOCALTIME_R  			struct tm tm;  			struct timeval tv;  			osmo_gettimeofday(&tv, NULL); @@ -367,6 +368,7 @@ static void _output(struct log_target *target, unsigned int subsys,  			if (ret < 0)  				goto err;  			OSMO_SNPRINTF_RET(ret, rem, offset, len); +#endif  		} else if (target->print_timestamp) {  			char *timestr;  			time_t tm; | 
