Skip to content

Commit

Permalink
Use <bits/timespec.h> from uapi headers too.
Browse files Browse the repository at this point in the history
Bug: android/ndk#1852
Test: treehugger
Change-Id: I554b31d2c4c443d37506e97a36099efbd3ad0e11
  • Loading branch information
enh-google committed Mar 20, 2023
1 parent ba498cf commit 875d405
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions libc/kernel/tools/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"in_addr": False,
"ip_mreq_source": False,
"ip_msfilter": False,
"timespec": False,
}

# define to true if you want to remove all defined(CONFIG_FOO) tests
Expand Down
5 changes: 1 addition & 4 deletions libc/kernel/uapi/linux/time.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@
****************************************************************************/
#ifndef _UAPI_LINUX_TIME_H
#define _UAPI_LINUX_TIME_H
#include <bits/timespec.h>
#include <linux/types.h>
#include <linux/time_types.h>
#ifndef _STRUCT_TIMESPEC
#define _STRUCT_TIMESPEC
struct timespec {
__kernel_old_time_t tv_sec;
long tv_nsec;
};
#endif
struct timeval {
__kernel_old_time_t tv_sec;
Expand Down

0 comments on commit 875d405

Please sign in to comment.