diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 20:10:31 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 20:10:31 +0100 |
| commit | fc00c656c96528112d05cf0edf8631bd5eaea446 (patch) | |
| tree | a6e0e6c588191a8bd1c64afc3b7a258e3e66c236 /include/bits/timespec.h | |
Add build system scaffolding and libc headers
Diffstat (limited to 'include/bits/timespec.h')
| -rw-r--r-- | include/bits/timespec.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/bits/timespec.h b/include/bits/timespec.h new file mode 100644 index 00000000..ebcacf76 --- /dev/null +++ b/include/bits/timespec.h @@ -0,0 +1,15 @@ +#ifndef __BITS_TIMESPEC_H +#define __BITS_TIMESPEC_H + +#ifndef __BITS_TIMESPEC_H_ +#error "Never include <bits/timespec.h> directly; use <time.h> instead." +#endif + +typedef __INT64_TYPE__ time_t; + +struct timespec { + time_t tv_sec; + long tv_nsec; +}; + +#endif |
