svn commit: r550863 - in head/net-mgmt/openlldp: . files
Stefan Eßer
se at FreeBSD.org
Thu Oct 1 18:45:54 UTC 2020
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);
More information about the svn-ports-all
mailing list