Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C
433 B
Raw Blame
--- a/sys/compat/linuxkpi/common/include/linux/socket.h
+++ b/sys/compat/linuxkpi/common/include/linux/socket.h
@@ -34,7 +34,7 @@
 #define	AF_QIPCRTR			42
 
 static inline int
-kernel_connect(int sd, struct sockaddr *sa, size_t salen, int flags)
+kernel_connect(int sd, void *sa, size_t salen, int flags)	/* (Linux 7.0 passes a struct sockaddr_unsized *) */
 {
 
 	/* kern_connectat()? It is used for sockaddr_qrtr by ath1xk/qmi. */