Projects
Eulaceura:Factory
iptraf-ng
_service:obs_scm:iptraf-ng-Add-sw64-architectur...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:iptraf-ng-Add-sw64-architecture.patch of Package iptraf-ng
From b79f6837f0ac885736b5677887e760dd85954d99 Mon Sep 17 00:00:00 2001 From: wxy <xywang7443@stu.jiangna.edu.cn> Date: Sat, 22 Oct 2022 09:16:10 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wxy <xywang7443@stu.jiangna.edu.cn> --- src/capt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/capt.c b/src/capt.c index 324d7cc..5554ef1 100644 --- a/src/capt.c +++ b/src/capt.c @@ -42,10 +42,17 @@ static int capt_set_recv_timeout(int fd, unsigned int msec) timeout.tv_sec = msec / 1000; timeout.tv_usec = (msec % 1000) * 1000; +#ifdef __sw_64__ + if(setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO_OLD, &timeout, len) != 0) + return -1; + else + return 0; +#else if(setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout, len) != 0) return -1; else return 0; +#endif } static int capt_setup_receive_function(struct capt *capt) -- 2.33.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