1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-22 12:57:15 +00:00
parent 085487dd3c
commit 22ee40576b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=549583
3 changed files with 24 additions and 2 deletions

View File

@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= libtuntap
DISTVERSION= 0.4
PORTREVISION= 1
DISTVERSIONPREFIX= ${PORTNAME}-
DISTVERSION= 0.4
PORTREVISION= 2
CATEGORIES= devel net
MAINTAINER= mmokhi@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- private.h.orig 2018-10-15 10:45:27 UTC
+++ private.h
@@ -105,7 +105,7 @@ struct device {
# endif
/* Internal log facilities */
-t_tuntap_log tuntap_log;
+extern t_tuntap_log tuntap_log;
void tuntap_log_default(int, const char *);
void tuntap_log_hexdump(void *, size_t);
void tuntap_log_chksum(void *, int);

View File

@ -0,0 +1,11 @@
--- tuntap.c.orig 2018-10-15 10:45:27 UTC
+++ tuntap.c
@@ -33,6 +33,8 @@
#include "tuntap.h"
#include "private.h"
+t_tuntap_log tuntap_log;
+
struct device *
tuntap_init(void) {
struct device *dev = NULL;