From d1e35f645721000467fddbfae76f7adcd3a59dc7 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Sun, 29 Jan 2023 19:44:59 +0000 Subject: [PATCH] Fix: Fixed building on windows --- src/source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source.c b/src/source.c index b4a37b8f..1a6c3a1e 100644 --- a/src/source.c +++ b/src/source.c @@ -618,9 +618,9 @@ static void send_to_listener (source_t *source, client_t *client, int deletion_e static bool source_open_dumpfile(source_t *source) { const char *filename = source->dumpfilename; + time_t curtime = time(NULL); #ifndef _WIN32 /* some of the below functions seems not to be standard winapi functions */ - time_t curtime = time(NULL); char buffer[PATH_MAX]; struct tm *loctime; #endif