Herton reports the following error when building a userspace program that includes net_stamp.h: In file included from foo.c:2: /usr/include/linux/net_tstamp.h:158:2: error: unknown type name ‘clockid_t’ clockid_t clockid; /* reference clockid */ ^~~~~~~~~ Fix it by using __kernel_clockid_t in place of clockid_t.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -155,8 +155,8 @@ enum txtime_flags { · 154 unmodified lines | ||
| 155 | 155 | }; |
| 156 | 156 | |
| 157 | 157 | struct sock_txtime { |
| 158 | − clockid_t clockid; /* reference clockid */ | |
| 159 | − __u32 flags; /* as defined by enum txtime_flags */ | |
| 158 | + __kernel_clockid_t clockid;/* reference clockid */ | |
| 159 | + __u32 flags; /* as defined by enum txtime_flags */ | |
| 160 | 160 | }; |
| 161 | 161 | |
| 162 | 162 | #endif /* _NET_TIMESTAMPING_H */ |