Date: Thu, 1 Oct 2020 18:45:53 +0000 (UTC) From: =?UTF-8?Q?Stefan_E=c3=9fer?= <se@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r550863 - in head/net-mgmt/openlldp: . files Message-ID: <202010011845.091IjrOj012480@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: se Date: Thu Oct 1 18:45:53 2020 New Revision: 550863 URL: https://svnweb.freebsd.org/changeset/ports/550863 Log: Fix build with -fno-common Added: head/net-mgmt/openlldp/files/patch-src_lldp__neighbor.c (contents, props changed) head/net-mgmt/openlldp/files/patch-src_lldp__neighbor.h (contents, props changed) Modified: head/net-mgmt/openlldp/Makefile Modified: head/net-mgmt/openlldp/Makefile ============================================================================== --- head/net-mgmt/openlldp/Makefile Thu Oct 1 18:41:00 2020 (r550862) +++ head/net-mgmt/openlldp/Makefile Thu Oct 1 18:45:53 2020 (r550863) @@ -3,7 +3,7 @@ PORTNAME= openlldp DISTVERSION= 0.4alpha -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= SF/${PORTNAME} Added: head/net-mgmt/openlldp/files/patch-src_lldp__neighbor.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openlldp/files/patch-src_lldp__neighbor.c Thu Oct 1 18:45:53 2020 (r550863) @@ -0,0 +1,16 @@ +--- src/lldp_neighbor.c.orig 2010-06-08 05:06:29 UTC ++++ src/lldp_neighbor.c +@@ -30,6 +30,13 @@ + #include "tlv/tlv_common.h" + #include "tlv/tlv.h" + ++char lldp_systemname[512]; ++char lldp_systemdesc[512]; ++int neighbor_local_sd; ++int neighbor_remote_sd; ++struct sockaddr_un local; ++struct sockaddr_un remote; ++ + int get_sys_desc() { + #ifndef WIN32 + int retval; Added: head/net-mgmt/openlldp/files/patch-src_lldp__neighbor.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-mgmt/openlldp/files/patch-src_lldp__neighbor.h Thu Oct 1 18:45:53 2020 (r550863) @@ -0,0 +1,26 @@ +--- src/lldp_neighbor.h.orig 2010-06-08 05:06:29 UTC ++++ src/lldp_neighbor.h +@@ -19,17 +19,17 @@ + + #include "lldp_port.h" + +-char lldp_systemname[512]; +-char lldp_systemdesc[512]; ++extern char lldp_systemname[512]; ++extern char lldp_systemdesc[512]; + +-int neighbor_local_sd; +-int neighbor_remote_sd; ++extern int neighbor_local_sd; ++extern int neighbor_remote_sd; + + #ifdef WIN32 + // Need to define this + #else +-struct sockaddr_un local; +-struct sockaddr_un remote; ++extern struct sockaddr_un local; ++extern struct sockaddr_un remote; + #endif + + int get_sys_desc(void);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010011845.091IjrOj012480>