Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-20 12:03:06 +00:00
parent dc559b33bf
commit 3660c2bf25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549095
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= tlsdate
PORTVERSION= 0.0.13
DISTVERSIONPREFIX= ${PORTNAME}-
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= sysutils
MAINTAINER= sunpoet@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- src/tlsdate.h.orig 2020-09-20 12:00:20 UTC
+++ src/tlsdate.h
@@ -188,7 +188,7 @@ struct state
int exitting;
};
-char timestamp_path[PATH_MAX];
+extern char timestamp_path[PATH_MAX];
int is_sane_time (time_t ts);
int load_disk_timestamp (const char *path, time_t * t);