[libc-commits] [libc] [libc] Add inet_ntop (PR #204143)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Tue Jun 16 06:21:13 PDT 2026


================
@@ -7,17 +7,22 @@
 //===----------------------------------------------------------------------===//
 ///
 /// \file
-/// Proxy header for struct winsize.
+/// Definitions internet address macros.
 ///
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_LIBC_HDR_TYPES_STRUCT_WINSIZE_H
-#define LLVM_LIBC_HDR_TYPES_STRUCT_WINSIZE_H
+#ifndef LLVM_LIBC_HDR_INET_ADDRESS_MACROS_H
+#define LLVM_LIBC_HDR_INET_ADDRESS_MACROS_H
 
 #ifdef LIBC_FULL_BUILD
-#include "include/llvm-libc-types/struct_winsize.h"
+
+#include "include/llvm-libc-macros/inet-address-macros.h"
+
 #else // Overlay mode
-#include <sys/ioctl.h>
-#endif // LIBC_FULL_BUILD
 
-#endif // LLVM_LIBC_HDR_TYPES_STRUCT_WINSIZE_H
+#include <arpa/inet.h>
+// Or #include <netinet/in.h>. Both files should define these.
----------------
labath wrote:

I don't know if there's a better way to do this...

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


More information about the libc-commits mailing list