main/open-lldp: fix rebuild error

missing string.h
This commit is contained in:
Jingyun Hua 2024-08-06 03:23:17 +00:00 committed by Leonardo Arena
parent 79df8a3f1d
commit 354729f302
2 changed files with 15 additions and 1 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=open-lldp
pkgver=1.1
pkgrel=1
pkgrel=2
pkgdesc="Open Source implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol (LLDP)"
url="http://www.open-lldp.org"
arch="all"
@ -26,6 +26,7 @@ subpackages="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/intel/openlldp/archive/refs/tags/v$pkgver.tar.gz
reopenstdout.patch
string-header.patch
lldpad.initd
lldpad.confd
"
@ -68,6 +69,7 @@ package() {
sha512sums="
794bd2d43e7b6e76a1aa9d1e650f24a52b4cb66166058ce4ec3f0c6567bcdff149ca86ab9108e82be14f7e7bf43c7486479edc23d851e739a2a22de7038ecb35 open-lldp-1.1.tar.gz
74cf3d7ef3c6d00cf05713bf5ef505292b6cfd7d6e080993947e88a44d725906d7243d59ee12bb468c093dc26937a5efe8fb644eca1d4c5b545825ce78253362 reopenstdout.patch
a0a61d0ca93543574486fba990ebec4401533a69f0f2c1671394ec55e4e56169f7002996335e8dd08f7d73d0ab2c27ec7824e6df12d78362ea5cf63a676c7e12 string-header.patch
d8c7d3c449a9c557814f70a5af15b1b8e34f4c465293aa962bc3a8310e24f8363cf15e75d3cbdc8894ca7a0b1e1962daaaba75ecb0caf770471ae0988e85be7b lldpad.initd
5dc09090913e55bde9aab3ad33eb7889942bb7a0583ae1a94cc31f6c8e34ccae18c02f2c191e157f81f2949cc91998d673b37d60522dc9c476d63136512f2b58 lldpad.confd
"

View file

@ -0,0 +1,12 @@
diff --git a/clif.c b/clif.c
index cad6f75..e3680b5 100644
--- a/clif.c
+++ b/clif.c
@@ -37,6 +37,7 @@
#include <sys/socket.h>
#include "clif.h"
#include "clif_msgs.h"
+#include <string.h>
#if defined(CONFIG_CLIF_IFACE_UNIX) || defined(CONFIG_CLIF_IFACE_UDP)
#define CLIF_IFACE_SOCKET