]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add SOL_VSOCK from Linux 6.7 to bits/socket.h
authorJoseph Myers <josmyers@redhat.com>
Thu, 8 Feb 2024 12:57:24 +0000 (12:57 +0000)
committerJoseph Myers <josmyers@redhat.com>
Thu, 8 Feb 2024 12:57:24 +0000 (12:57 +0000)
Linux 6.7 adds a constant SOL_VSOCK (recall that various constants in
include/linux/socket.h are in fact part of the kernel-userspace API
despite that not being a uapi header).  Add it to glibc's
bits/socket.h.

Tested for x86_64.

sysdeps/unix/sysv/linux/bits/socket.h

index 0d86feb4cadc13e3ac2e4504d8391de7fcbbe0fa..86444f0018b0d3da6d20e2d9afc337df9de45b44 100644 (file)
@@ -172,6 +172,7 @@ typedef __socklen_t socklen_t;
 #define SOL_MPTCP      284
 #define SOL_MCTP       285
 #define SOL_SMC                286
+#define SOL_VSOCK      287
 
 /* Maximum queue length specifiable by listen.  */
 #define SOMAXCONN      4096