Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions libc/include/llvm-libc-types/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ add_header(float_t HDR float_t.h)
add_header(gid_t HDR gid_t.h)
add_header(uid_t HDR uid_t.h)
add_header(imaxdiv_t HDR imaxdiv_t.h)
add_header(in_addr_t HDR in_addr_t.h)
add_header(in_addr HDR in_addr.h DEPENDS .in_addr_t)
add_header(ino_t HDR ino_t.h)
add_header(mbstate_t HDR mbstate_t.h)
add_header(mode_t HDR mode_t.h)
Expand Down
18 changes: 18 additions & 0 deletions libc/include/llvm-libc-types/in_addr.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//===-- Definition of in_addr type ----------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_TYPES_IN_ADDR_H
#define LLVM_LIBC_TYPES_IN_ADDR_H

#include "in_addr_t.h"

typedef struct {
in_addr_t s_addr;
} in_addr;

#endif // LLVM_LIBC_TYPES_IN_ADDR_H
14 changes: 14 additions & 0 deletions libc/include/llvm-libc-types/in_addr_t.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//===-- Definition of in_addr_t type --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_TYPES_IN_ADDR_T_H
#define LLVM_LIBC_TYPES_IN_ADDR_T_H

typedef __UINT32_TYPE__ in_addr_t;

#endif // LLVM_LIBC_TYPES_IN_ADDR_T_H
Loading