summaryrefslogtreecommitdiff
path: root/backport-include/linux/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport-include/linux/socket.h')
-rw-r--r--backport-include/linux/socket.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/backport-include/linux/socket.h b/backport-include/linux/socket.h
new file mode 100644
index 0000000..8b6453e
--- /dev/null
+++ b/backport-include/linux/socket.h
@@ -0,0 +1,18 @@
+#ifndef __BACKPORT_SOCKET_H
+#define __BACKPORT_SOCKET_H
+#include_next <linux/socket.h>
+
+#ifndef SOL_NFC
+/*
+ * backport SOL_NFC -- see commit:
+ * NFC: llcp: Implement socket options
+ */
+#define SOL_NFC 280
+#endif
+
+#ifndef __sockaddr_check_size
+#define __sockaddr_check_size(size) \
+ BUILD_BUG_ON(((size) > sizeof(struct __kernel_sockaddr_storage)))
+#endif
+
+#endif /* __BACKPORT_SOCKET_H */