]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/caif/caif_socket.h
headers, net: Use __kernel_sa_family_t in more definitions shared with userland
[karo-tx-linux.git] / include / linux / caif / caif_socket.h
index d9cb19b7cff79c03feaed0421169ada719fd2b2b..3f3bac6af7bc07d76d171a45a2adb831a237e70f 100644 (file)
@@ -9,12 +9,7 @@
 #define _LINUX_CAIF_SOCKET_H
 
 #include <linux/types.h>
-
-#ifdef __KERNEL__
 #include <linux/socket.h>
-#else
-#include <sys/socket.h>
-#endif
 
 /**
  * enum caif_link_selector -    Physical Link Selection.
@@ -144,7 +139,7 @@ enum caif_debug_service {
  * CAIF Channel. It defines the service to connect to on the modem.
  */
 struct sockaddr_caif {
-       sa_family_t  family;
+       __kernel_sa_family_t  family;
        union {
                struct {
                        __u8  type;             /* type: enum caif_at_type */