41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From 6f15782cb7d559f1d7e66351a0216048693c9aac Mon Sep 17 00:00:00 2001
|
|
From: Tomek Mrugalski <tomek@isc.org>
|
|
Date: Thu, 23 Jul 2020 23:41:25 +0200
|
|
Subject: [PATCH] Fixed compatibility with gcc-10
|
|
|
|
---
|
|
Port-linux/interface.c | 4 ++++
|
|
Port-linux/interface.h | 4 ++--
|
|
2 files changed, 6 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/Port-linux/interface.c b/Port-linux/interface.c
|
|
index 3e239d3a..18777e91 100644
|
|
--- a/Port-linux/interface.c
|
|
+++ b/Port-linux/interface.c
|
|
@@ -43,6 +43,10 @@
|
|
#include <linux/sockios.h>
|
|
#include <linux/if_ether.h>
|
|
|
|
+int interface_auto_up = 0;
|
|
+int interface_do_message = 0;
|
|
+
|
|
+
|
|
void daemon_log(int loglevel, const char *fmt,...)
|
|
{
|
|
char buf[255];
|
|
diff --git a/Port-linux/interface.h b/Port-linux/interface.h
|
|
index e986eed3..7c4a54d5 100644
|
|
--- a/Port-linux/interface.h
|
|
+++ b/Port-linux/interface.h
|
|
@@ -23,8 +23,8 @@
|
|
extern "C" {
|
|
#endif
|
|
|
|
-int interface_auto_up;
|
|
-int interface_do_message;
|
|
+extern int interface_auto_up;
|
|
+extern int interface_do_message;
|
|
|
|
typedef enum { IFSTATUS_UP, IFSTATUS_DOWN, IFSTATUS_ERR } interface_status_t;
|
|
|