Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
daeae9f1
Commit
daeae9f1
authored
Jan 13, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mksysinfo: Make sure EPOLL_CLOEXEC is defined.
From-SVN: r183168
parent
932c7744
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
libgo/mksysinfo.sh
+4
-1
No files found.
libgo/mksysinfo.sh
View file @
daeae9f1
...
...
@@ -193,10 +193,13 @@ grep '^const __PC' gen-sysinfo.go |
# epoll constants.
grep
'^const _EPOLL'
gen-sysinfo.go |
sed
-e
's/^\(const \)_\(EPOLL[^= ]*\)\(.*\)$/\1\2 = _\2/'
>>
${
OUT
}
# Make sure EPOLLRDHUP
is
defined.
# Make sure EPOLLRDHUP
and EPOLL_CLOEXEC are
defined.
if
!
grep
'^const EPOLLRDHUP'
${
OUT
}
>
/dev/null 2>&1
;
then
echo
"const EPOLLRDHUP = 0x2000"
>>
${
OUT
}
fi
if
!
grep
'^const EPOLL_CLOEXEC'
${
OUT
}
>
/dev/null 2>&1
;
then
echo
"const EPOLL_CLOEXEC = 02000000"
>>
${
OUT
}
fi
# Ptrace constants.
grep
'^const _PTRACE'
gen-sysinfo.go |
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment