Merge "Add basic example for testing/validation" into main
diff --git a/libusb.BUILD b/libusb.BUILD
index 07ba2d8..e65b373 100644
--- a/libusb.BUILD
+++ b/libusb.BUILD
@@ -75,6 +75,10 @@
         ":libusb_config",
         ":libusb_headers",
     ],
+    linkopts = select({
+        "@platforms//os:windows": ["-DEFAULTLIB:AdvAPI32.Lib"],
+        "//conditions:default": [],
+    }),
 )
 
 label_flag(
@@ -108,8 +112,14 @@
 
 cc_library(
     name = "libusb_windows",
-    srcs = glob(["libusb/os/*_windows.c"]),
-    hdrs = glob(["libusb/os/*_windows.h"]),
+    srcs = glob([
+        "libusb/os/*_windows.c",
+        "libusb/os/windows_*.c",
+    ]),
+    hdrs = glob([
+        "libusb/os/*_windows.h",
+        "libusb/os/windows_*.h",
+    ]),
     visibility = ["//visibility:private"],
     deps = [
         ":libusb_config",
@@ -169,6 +179,9 @@
         ":libusb_headers",
         ":libusb_posix",
     ],
+    # linux_netlink.c passes a buffer pointer (`unsigned char*`) to a function
+    # expecting `char*`.
+    copts = ["-Wno-pointer-sign"],
 )
 
 cc_library(