File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,6 @@ fn main() {
190
190
cfg. header ( "sys/msg.h" ) ;
191
191
cfg. header ( "sys/shm.h" ) ;
192
192
cfg. header ( "sys/user.h" ) ;
193
- cfg. header ( "sys/fsuid.h" ) ;
194
193
cfg. header ( "sys/timerfd.h" ) ;
195
194
cfg. header ( "shadow.h" ) ;
196
195
if !emscripten {
@@ -241,6 +240,8 @@ fn main() {
241
240
}
242
241
243
242
if linux || android {
243
+ cfg. header ( "sys/fsuid.h" ) ;
244
+
244
245
// DCCP support
245
246
if !uclibc && !musl && !emscripten {
246
247
cfg. header ( "linux/dccp.h" ) ;
Original file line number Diff line number Diff line change @@ -1050,6 +1050,8 @@ extern {
1050
1050
in_fd : :: c_int ,
1051
1051
offset : * mut off_t ,
1052
1052
count : :: size_t ) -> :: ssize_t ;
1053
+ pub fn setfsgid ( gid : :: gid_t ) -> :: c_int ;
1054
+ pub fn setfsuid ( uid : :: uid_t ) -> :: c_int ;
1053
1055
pub fn sigsuspend ( mask : * const :: sigset_t ) -> :: c_int ;
1054
1056
#[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrgid_r" ) ]
1055
1057
pub fn getgrgid_r ( uid : :: uid_t ,
You can’t perform that action at this time.
0 commit comments