1 Star 0 Fork 1

冯建/torque

forked from src-openEuler/torque 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
torque-4.2.10-remove-unused-header.patch 915 Bytes
一键复制 编辑 原始数据 按行查看 历史
冯建 提交于 2021-05-25 16:33 . tj
From fb7c21c16423cecdbd8ac2429118305c26b82bb4 Mon Sep 17 00:00:00 2001
From: Justin Bronder <jsbronder@gmail.com>
Date: Sat, 1 Jun 2013 11:37:27 -0400
Subject: [PATCH] Libnet: remove unused header
Do not include <rpc/rpc.h> as it is unused. While this is normally
harmless, glibc is dropping support for rpc as of 2.14 [1] and ipv6 is
only supported in ti-rpc.
This fixes building on distros that have not manually patched rpc
support back into glibc.
1. http://sourceware.org/bugzilla/show_bug.cgi?id=12949
---
src/lib/Libnet/net_client.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/lib/Libnet/net_client.c b/src/lib/Libnet/net_client.c
index d8e51312f8..04c3ba0d78 100644
--- a/src/lib/Libnet/net_client.c
+++ b/src/lib/Libnet/net_client.c
@@ -80,7 +80,6 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include <rpc/rpc.h>
#include <netinet/in.h>
#include <stdio.h>
#include <errno.h>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hostfj/torque.git
git@gitee.com:hostfj/torque.git
hostfj
torque
torque
master

搜索帮助