File tree 3 files changed +10
-5
lines changed
3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1228,6 +1228,10 @@ extern "C" {
1228
1228
clk_id : :: clockid_t ,
1229
1229
tp : * const :: timespec ,
1230
1230
) -> :: c_int ;
1231
+ pub fn clock_getcpuclockid (
1232
+ pid : :: pid_t ,
1233
+ clk_id : * mut :: clockid_t ,
1234
+ ) -> :: c_int ;
1231
1235
1232
1236
pub fn extattr_delete_fd (
1233
1237
fd : :: c_int ,
Original file line number Diff line number Diff line change @@ -2761,11 +2761,6 @@ extern "C" {
2761
2761
sevp : * mut :: sigevent ,
2762
2762
) -> :: c_int ;
2763
2763
2764
- pub fn clock_getcpuclockid (
2765
- pid : :: pid_t ,
2766
- clk_id : * mut :: clockid_t ,
2767
- ) -> :: c_int ;
2768
-
2769
2764
pub fn lutimes ( file : * const :: c_char , times : * const :: timeval ) -> :: c_int ;
2770
2765
2771
2766
pub fn setpwent ( ) ;
Original file line number Diff line number Diff line change @@ -1314,6 +1314,12 @@ extern "C" {
1314
1314
clk_id : :: clockid_t ,
1315
1315
tp : * const :: timespec ,
1316
1316
) -> :: c_int ;
1317
+ #[ cfg( not( target_os = "emscripten" ) ) ]
1318
+ pub fn clock_getcpuclockid (
1319
+ pid : :: pid_t ,
1320
+ clk_id : * mut :: clockid_t ,
1321
+ ) -> :: c_int ;
1322
+
1317
1323
pub fn dirfd ( dirp : * mut :: DIR ) -> :: c_int ;
1318
1324
1319
1325
pub fn pthread_getattr_np (
You can’t perform that action at this time.
0 commit comments