Can't build rtl8812au driver

I installed OSMC on an headless raspberry pi and am trying to install the rtl8812au wifi driver so I can connect my raspberry pi through the wifi.
I did the same way I did with Raspbian, following Rob. S.'s advice make - Install drivers for RTL8812au wireless usb adapter - Raspberry Pi Stack Exchange
the only differences are that I installed rbp1-headers-4.14.34-1-osmc instead of raspberrypi-kernel-headers and I did a symbolic link between /usr/src/rbp1-headers-4.14.34-1-osmc/ and /lib/modules/4.14.34-1-osmc/build
but when I was at the sh ./install.sh step I had an error message telling me sys/socket.h wasn’t found.
Here’s the full output:
osmc@osmc:~/rtl8812au$ sudo sh install.sh make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.14.34-1-osmc/build M=/home/osmc/rtl8812au modules make[1]: Entering directory '/usr/src/rbp1-headers-4.14.34-1-osmc' CC [M] /home/osmc/rtl8812au/core/rtw_cmd.o In file included from ./include/linux/netfilter.h:8:0, from ./include/linux/netfilter/nf_conntrack_tuple_common.h:6, from ./include/linux/netfilter/nf_conntrack_dccp.h:29, from ./include/net/netns/conntrack.h:11, from ./include/net/net_namespace.h:27, from ./include/linux/netdevice.h:42, from /home/osmc/rtl8812au/include/osdep_service_linux.h:35, from /home/osmc/rtl8812au/include/osdep_service.h:41, from /home/osmc/rtl8812au/include/drv_types.h:32, from /home/osmc/rtl8812au/core/rtw_cmd.c:22: ./include/linux/if.h:28:54: fatal error: sys/socket.h: No such file or directory #include <sys/socket.h> /* for struct sockaddr. */ ^ compilation terminated. scripts/Makefile.build:328: recipe for target '/home/osmc/rtl8812au/core/rtw_cmd.o' failed make[2]: *** [/home/osmc/rtl8812au/core/rtw_cmd.o] Error 1 Makefile:1528: recipe for target '_module_/home/osmc/rtl8812au' failed make[1]: *** [_module_/home/osmc/rtl8812au] Error 2 make[1]: Leaving directory '/usr/src/rbp1-headers-4.14.34-1-osmc' Makefile:1052: recipe for target 'modules' failed make: *** [modules] Error 2

I then tried installing libc6-dev but it told me it was already at the latest version.
I checked manually to see if there was a sys/socket.h but the sys folder doesn’t even exist

osmc@osmc:~/rtl8812au$ ls -l /usr/include/sys/socket.h ls: cannot access '/usr/include/sys/socket.h': No such file or directory osmc@osmc:~/rtl8812au$ ls -l /usr/include/sys/ ls: cannot access '/usr/include/sys/': No such file or directory

am I missing something? how can I get socket.h?
edit: do you think it would work if I copy paste the .h files from raspbian?

The driver is already included