History

net: Use __kernel_clockid_t in uapi net_stamp.h

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.

Davide Caratti committed 7 years ago

Commit e2c4cf71 parent 42983881 file · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/net_tstamp.h+2−2
@@ -155,8 +155,8 @@ enum txtime_flags { · 154 unmodified lines
155155 };
156156
157157 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 */
160160 };
161161
162162 #endif /* _NET_TIMESTAMPING_H */