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

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Thu Jun 11 06:20:04 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"
----------------
labath wrote:

I don't think that's right because this file gets installed, and needs to compile with a standard include path. However, I think a plain `llvm-libc-macros/stdint-macros.h` will work, as we're using that in our generated headers.

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


More information about the libc-commits mailing list