Ai
12 Star 0 Fork 8

src-openEuler/webbench

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
fix-compile-error-include-libtirpc-because-glibc-doe.patch 934 Bytes
一键复制 编辑 原始数据 按行查看 历史
From 9fe49021d6e063d42a77dd2d79681bc4bc403476 Mon Sep 17 00:00:00 2001
From: wangxiao65 <287608437@qq.com>
Date: Wed, 15 Jul 2020 11:22:47 +0800
Subject: [PATCH] fix compile error, include libtirpc, because glibc does not
provide rpc.
---
Makefile | 4 ++--
webbench.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 47196bc..8e19df7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
-CFLAGS?= -Wall -ggdb -W -O
+CFLAGS?= -Wall -ggdb -W -O -I/usr/include/tirpc
CC?= gcc
LIBS?=
-LDFLAGS?=
+LDFLAGS?= -ltirpc
PREFIX?= /usr/local
VERSION=1.5
TMPDIR=/tmp/webbench-$(VERSION)
diff --git a/webbench.c b/webbench.c
index fa1b02f..c12d831 100644
--- a/webbench.c
+++ b/webbench.c
@@ -25,7 +25,7 @@
#include <unistd.h>
#include <sys/param.h>
-#include <rpc/types.h>
+#include <tirpc/rpc/types.h>
#include <getopt.h>
#include <strings.h>
#include <time.h>
--
2.23.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/webbench.git
git@gitee.com:src-openeuler/webbench.git
src-openeuler
webbench
webbench
master

搜索帮助