The branch main has been updated by pkubaj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5cc3934f1e79f4576e569a10cd6678b981d40701

commit 5cc3934f1e79f4576e569a10cd6678b981d40701
Author:     Piotr Kubaj <[email protected]>
AuthorDate: 2026-11-30 22:15:53 +0000
Commit:     Piotr Kubaj <[email protected]>
CommitDate: 2026-12-03 09:18:41 +0000

    linuxulator/powerpc: use the PowerPC socket option numbers
    
    Six socket options are numbered differently on PowerPC. linux_socket.h
    already has an #ifndef for that, but nothing defined them.
    
    Reviewed by:    jhibbits
    Differential Revision:  https://reviews.freebsd.org/D62276
---
 sys/powerpc/linux/linux.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sys/powerpc/linux/linux.h b/sys/powerpc/linux/linux.h
index 5d3ff9cceb33..776effc98180 100644
--- a/sys/powerpc/linux/linux.h
+++ b/sys/powerpc/linux/linux.h
@@ -167,6 +167,17 @@ struct l_statfs64 {
        l_long          f_spare[4];
 };
 
+/*
+ * Socket options that PowerPC numbers differently from the generic ABI,
+ * see the matching #ifndef in <compat/linux/linux_socket.h>.
+ */
+#define        LINUX_SO_RCVLOWAT       16
+#define        LINUX_SO_SNDLOWAT       17
+#define        LINUX_SO_RCVTIMEO       18
+#define        LINUX_SO_SNDTIMEO       19
+#define        LINUX_SO_PASSCRED       20
+#define        LINUX_SO_PEERCRED       21
+
 /* sigaction flags */
 #define        LINUX_SA_NOCLDSTOP      0x00000001
 #define        LINUX_SA_NOCLDWAIT      0x00000002

Reply via email to