File tree 2 files changed +4
-1
lines changed 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 {
@@ -240,6 +239,8 @@ fn main() {
240
239
}
241
240
242
241
if linux || android {
242
+ cfg. header ( "sys/fsuid.h" ) ;
243
+
243
244
// DCCP support
244
245
if !uclibc && !musl && !emscripten {
245
246
cfg. header ( "linux/dccp.h" ) ;
Original file line number Diff line number Diff line change @@ -1038,6 +1038,8 @@ extern {
1038
1038
in_fd : :: c_int ,
1039
1039
offset : * mut off_t ,
1040
1040
count : :: size_t ) -> :: ssize_t ;
1041
+ pub fn setfsgid ( gid : :: gid_t ) -> :: c_int ;
1042
+ pub fn setfsuid ( uid : :: uid_t ) -> :: c_int ;
1041
1043
pub fn sigsuspend ( mask : * const :: sigset_t ) -> :: c_int ;
1042
1044
#[ cfg_attr( target_os = "solaris" , link_name = "__posix_getgrgid_r" ) ]
1043
1045
pub fn getgrgid_r ( uid : :: uid_t ,
You can’t perform that action at this time.
0 commit comments