diff --git a/src/header/poll/cbindgen.toml b/src/header/poll/cbindgen.toml index d623b3a811..11047d5e92 100644 --- a/src/header/poll/cbindgen.toml +++ b/src/header/poll/cbindgen.toml @@ -10,3 +10,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/sched/cbindgen.toml b/src/header/sched/cbindgen.toml index 39dfb744db..1fadf677f2 100644 --- a/src/header/sched/cbindgen.toml +++ b/src/header/sched/cbindgen.toml @@ -10,3 +10,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/semaphore/cbindgen.toml b/src/header/semaphore/cbindgen.toml index 0bb0fb24ce..13bdf9cdc9 100644 --- a/src/header/semaphore/cbindgen.toml +++ b/src/header/semaphore/cbindgen.toml @@ -10,3 +10,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/signal/cbindgen.toml b/src/header/signal/cbindgen.toml index 8eb7d42591..fe4d3bf84a 100644 --- a/src/header/signal/cbindgen.toml +++ b/src/header/signal/cbindgen.toml @@ -14,3 +14,4 @@ prefix_with_name = true [export.rename] "sigaction" = "struct sigaction" +"timespec" = "struct timespec" diff --git a/src/header/sys_stat/cbindgen.toml b/src/header/sys_stat/cbindgen.toml index 7cd8feee2b..51cba69644 100644 --- a/src/header/sys_stat/cbindgen.toml +++ b/src/header/sys_stat/cbindgen.toml @@ -11,3 +11,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/sys_time/cbindgen.toml b/src/header/sys_time/cbindgen.toml index 1815e8c0a1..dea065fa69 100644 --- a/src/header/sys_time/cbindgen.toml +++ b/src/header/sys_time/cbindgen.toml @@ -13,4 +13,5 @@ cpp_compat = true prefix_with_name = true [export.rename] +"timespec" = "struct timespec" "timeval" = "struct timeval" diff --git a/src/header/time/cbindgen.toml b/src/header/time/cbindgen.toml index a09b92ed85..1f409617ca 100644 --- a/src/header/time/cbindgen.toml +++ b/src/header/time/cbindgen.toml @@ -13,4 +13,5 @@ struct sigevent; prefix_with_name = true [export.rename] +"timespec" = "struct timespec" "sigevent" = "struct sigevent"