Projects
Eulaceura:Factory
sigar
_service:obs_scm:0002-fix-rpc-header-file-inclu...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0002-fix-rpc-header-file-include-error.patch of Package sigar
From 35f87d0c14555e7b483430e6dd77a3dfd236b5b5 Mon Sep 17 00:00:00 2001 From: maminjie <maminjie1@huawei.com> Date: Thu, 6 Aug 2020 17:21:29 +0800 Subject: [PATCH] fix rpc header file include error --- bindings/java/build.xml | 1 + src/CMakeLists.txt | 2 ++ 2 files changed, 3 insertions(+) diff --git a/bindings/java/build.xml b/bindings/java/build.xml index d6d749d..6370199 100644 --- a/bindings/java/build.xml +++ b/bindings/java/build.xml @@ -221,6 +221,7 @@ <path id="jni.include.dirs"> <path location="../../include"/> <path location="../../src/os/${jni.src}"/> + <path location="/usr/include/tirpc"/> <path location="${build}/src"/> <path location="src/jni"/> </path> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 40137d0..06ffe6c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -32,6 +32,8 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux") SET(SIGAR_SRC os/linux/linux_sigar.c) INCLUDE_DIRECTORIES(os/linux/) + INCLUDE_DIRECTORIES(/usr/include/tirpc/) + SET(SIGAR_LINK_FLAGS -ltirpc) ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux") ## macosx, freebsd -- 2.23.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2