From 113816530831aa0e98aab871389bc4c44fa661a3 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 17 Jun 2024 16:50:03 +0300 Subject: [PATCH] LibC: Define PF_* macros on sys/socket.h --- libc/include/sys/socket.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libc/include/sys/socket.h b/libc/include/sys/socket.h index f4e88e9830..aaf7b920ce 100644 --- a/libc/include/sys/socket.h +++ b/libc/include/sys/socket.h @@ -107,6 +107,11 @@ struct linger #define AF_INET6 2 #define AF_UNIX 3 +#define PF_UNSPEC AF_UNSPEC +#define PF_INET AF_INET +#define PF_INET6 AF_INET6 +#define PF_UNIX AF_UNIX + #define SHUT_RD 0x01 #define SHUT_WR 0x02 #define SHUT_RDWR (SHUT_RD | SHUT_WR)