1 Star 0 Fork 25

luofeng14/dhcp

forked from src-openEuler/dhcp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
huawei-support-for-building-with-clang.patch 745 Bytes
一键复制 编辑 原始数据 按行查看 历史
luofeng14 提交于 2024-02-04 08:34 . Support for building with clang
From 2d9a110b66422fd9185a1e3ea7376c23236633a2 Mon Sep 17 00:00:00 2001
From: y00428059 <yuzengqi@huawei.com>
Date: Wed, 15 Nov 2023 13:16:31 +0800
Subject: [PATCH] support for building with clang
---
client/dhclient.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/client/dhclient.c b/client/dhclient.c
index a3fe1ae..517b9cf 100644
--- a/client/dhclient.c
+++ b/client/dhclient.c
@@ -49,7 +49,9 @@
* Defined in stdio.h when _GNU_SOURCE is set, but we don't want to define
* that when building ISC code.
*/
+#ifndef asprintf
extern int asprintf(char **strp, const char *fmt, ...);
+#endif
TIME default_lease_time = 43200; /* 12 hours... */
TIME max_lease_time = 86400; /* 24 hours... */
--
2.19.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/luofeng14/dhcp.git
git@gitee.com:luofeng14/dhcp.git
luofeng14
dhcp
dhcp
master

搜索帮助