Skip to content

Commit ee519c2

Browse files
committed
Include stdint.h to use int16_t
1 parent 4b5c842 commit ee519c2

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

libc/include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ add_gen_header(
4545
.llvm-libc-types.mode_t
4646
.llvm-libc-types.struct_flock
4747
.llvm-libc-types.struct_flock64
48-
.llvm-libc-types.off64
48+
.llvm-libc-types.off64_t
4949
.llvm-libc-types.pid_t
5050
.llvm-libc-types.off_t
5151
.llvm_libc_common_h

libc/include/llvm-libc-types/struct_flock.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
#include "llvm-libc-types/off_t.h"
1313
#include "llvm-libc-types/pid_t.h"
1414

15+
#include <stdint.h>
16+
1517
struct flock {
16-
short int l_type;
17-
short int l_whence;
18+
int16_t l_type;
19+
int16_t l_whence;
1820
off_t l_start;
1921
off_t l_len;
2022
pid_t l_pid;

libc/include/llvm-libc-types/struct_flock64.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
#include "llvm-libc-types/off64_t.h"
1313
#include "llvm-libc-types/pid_t.h"
1414

15+
#include <stdint.h>
16+
1517
struct flock64 {
16-
short int l_type;
17-
short int l_whence;
18+
int16_t l_type;
19+
int16_t l_whence;
1820
off64_t l_start;
1921
off64_t l_len;
2022
pid_t l_pid;

0 commit comments

Comments
 (0)