diff options
-rw-r--r-- | src/log.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -12,11 +12,13 @@ */ #include <errno.h> +#include <pthread.h> #include <stdarg.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/time.h> #include "githead.h" #include "log.h" #include "shl_misc.h" @@ -26,8 +28,6 @@ * We need a global locking mechanism. Use pthread here. */ -#include <pthread.h> - static pthread_mutex_t log__mutex = PTHREAD_MUTEX_INITIALIZER; static inline void log_lock() @@ -46,8 +46,6 @@ static inline void log_unlock() * log-message. */ -#include <sys/time.h> - static struct timeval log__ftime; static void log__time(long long *sec, long long *usec) |