fix build on non-freebsd systems

Sun, 25 Sep 2022 09:33:39 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 25 Sep 2022 09:33:39 +0200
changeset 387
f5caf41b4db6
parent 386
b91f8efadb63
child 388
30d29ef5b79a

fix build on non-freebsd systems

src/server/plugins/postgresql/vfs.c file | annotate | diff | comparison | revisions
--- a/src/server/plugins/postgresql/vfs.c	Sat Sep 24 17:11:57 2022 +0200
+++ b/src/server/plugins/postgresql/vfs.c	Sun Sep 25 09:33:39 2022 +0200
@@ -965,7 +965,7 @@
 #ifdef __FreeBSD__
     return timelocal(&tm);
 #else
-    return mktime(&tparts) - timezone;
+    return mktime(&tm) - timezone;
 #endif
 }
 

mercurial