I'm trying to compile this module in OpenWRT and this fails with the following error:
/data/Development/openwrt/build_dir/target-x86_64_musl/linux-x86_64/rtl88x2bu-2023-01-14-d0f2241e/include/linux/wireless.h:28:18: fatal error: sys/socket.h: No such file or directory
28 | #include <sys/socket.h> /* for "struct sockaddr" et al */
| ^~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [scripts/Makefile.build:289: /data/Development/openwrt/build_dir/target-x86_64_musl/linux-x86_64/rtl88x2bu-2023-01-14-d0f2241e/core/rtw_cmd.o] Error 1
make[4]: *** [Makefile:1903: /data/Development/openwrt/build_dir/target-x86_64_musl/linux-x86_64/rtl88x2bu-2023-01-14-d0f2241e] Error 2
make[4]: Leaving directory '/data/Development/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.15.88'
make[3]: *** [Makefile:71: /data/Development/openwrt/build_dir/target-x86_64_musl/linux-x86_64/rtl88x2bu-2023-01-14-d0f2241e/.built] Error 2
make[3]: Leaving directory '/data/Development/openwrt/package/kernel/rtl88x2bu'
time: package/kernel/rtl88x2bu/compile#2.20#0.73#2.83
ERROR: package/kernel/rtl88x2bu failed to build.
make[2]: *** [package/Makefile:116: package/kernel/rtl88x2bu/compile] Error 1
make[2]: Leaving directory '/data/Development/openwrt'
make[1]: *** [package/Makefile:110: /data/Development/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/data/Development/openwrt'
make: *** [/data/Development/openwrt/include/toplevel.mk:231: world] Error 2