Skip to content

Commit bbc3bee

Browse files
committed
add includes to struct tm and time_t for localtime and localtime_r
1 parent 2e11cb4 commit bbc3bee

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc/src/time/localtime.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "src/time/localtime.h"
10+
#include "hdr/types/struct_tm.h"
11+
#include "hdr/types/time_t.h"
1012
#include "src/__support/macros/null_check.h"
1113
#include "src/time/time_utils.h"
1214

libc/src/time/localtime_r.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88

99
#include "src/time/localtime_r.h"
10+
#include "hdr/types/struct_tm.h"
11+
#include "hdr/types/time_t.h"
1012
#include "src/__support/macros/null_check.h"
1113
#include "src/time/time_utils.h"
1214

0 commit comments

Comments
 (0)