diff options
Diffstat (limited to 'libc/include/llvm-libc-macros')
-rw-r--r-- | libc/include/llvm-libc-macros/CMakeLists.txt | 6 | ||||
-rw-r--r-- | libc/include/llvm-libc-macros/netinet-in-macros.h | 19 |
2 files changed, 25 insertions, 0 deletions
diff --git a/libc/include/llvm-libc-macros/CMakeLists.txt b/libc/include/llvm-libc-macros/CMakeLists.txt index f715403..76c03d9 100644 --- a/libc/include/llvm-libc-macros/CMakeLists.txt +++ b/libc/include/llvm-libc-macros/CMakeLists.txt @@ -153,6 +153,12 @@ add_macro_header( ) add_macro_header( + netinet_in_macros + HDR + netinet-in-macros.h +) + +add_macro_header( offsetof_macro HDR offsetof-macro.h diff --git a/libc/include/llvm-libc-macros/netinet-in-macros.h b/libc/include/llvm-libc-macros/netinet-in-macros.h new file mode 100644 index 0000000..c05e5e2 --- /dev/null +++ b/libc/include/llvm-libc-macros/netinet-in-macros.h @@ -0,0 +1,19 @@ +//===-- Definition of macros from netinet/in.h ----------------------------===// +// +// 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_MACROS_NETINET_IN_MACROS_H +#define LLVM_LIBC_MACROS_NETINET_IN_MACROS_H + +#define IPPROTO_IP 0 +#define IPPROTO_ICMP 1 +#define IPPROTO_TCP 6 +#define IPPROTO_UDP 17 +#define IPPROTO_IPV6 41 +#define IPPROTO_RAW 255 + +#endif // LLVM_LIBC_MACROS_NETINET_IN_MACROS_H |