diff mbox series

[48/66] bsd-user: h2t_freebsd_cmsg should use SCM_TIMEOUT

Message ID 20260515-misc-2026q2-v1-48-5438ca41b27a@bsdimp.com
State New
Headers show
Series bsd-user: Upstream most of the remaining system calls | expand

Commit Message

Warner Losh May 15, 2026, 9:19 p.m. UTC
Logically, this is SCM_TIMEOUT, not SO_TIMEOUT. No change in behavior,
however, since these values are the same.

Signed-off-by: Warner Losh <imp@bsdimp.com>
---
 bsd-user/freebsd/os-socket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bsd-user/freebsd/os-socket.c b/bsd-user/freebsd/os-socket.c
index 543c9c10a6..41e40d2913 100644
--- a/bsd-user/freebsd/os-socket.c
+++ b/bsd-user/freebsd/os-socket.c
@@ -186,7 +186,7 @@  abi_long h2t_freebsd_cmsg(struct target_msghdr *target_msgh,
                 }
                 break;
             }
-            case SO_TIMESTAMP:
+            case SCM_TIMESTAMP:
             {
                 struct timeval *tv = (struct timeval *)data;
                 struct target_freebsd_timeval *target_tv =