[libc-commits] [libc] [libc] Add the sockaddr_in6 type and IN6ADDR_*_INIT macros (PR #201357)

Jeff Bailey via libc-commits libc-commits at lists.llvm.org
Thu Jun 11 03:30:24 PDT 2026


================
@@ -0,0 +1,31 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Definition of struct sockaddr_in6. This is the sockaddr specialization for
+/// AF_INET6 sockets, as defined by posix.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_LIBC_TYPES_STRUCT_SOCKADDR_IN6_H
+#define LLVM_LIBC_TYPES_STRUCT_SOCKADDR_IN6_H
+
+#include "../llvm-libc-macros/stdint-macros.h"
----------------
kaladron wrote:

```suggestion
#include "include/llvm-libc-macros/stdint-macros.h"
```

To avoid relative paths

https://github.com/llvm/llvm-project/pull/201357


More information about the libc-commits mailing list