From 051a8fee7c69534f787951e5842aeec1e6515a71 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Tue, 25 May 2021 15:35:25 -0500 Subject: [PATCH] fix linux build fail Signed-off-by: Frank Li --- uuu/uuu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uuu/uuu.cpp b/uuu/uuu.cpp index 844220f8..3f12a683 100644 --- a/uuu/uuu.cpp +++ b/uuu/uuu.cpp @@ -783,6 +783,7 @@ void print_lsusb() uuu_for_each_devices(print_usb_device, NULL); } +#ifdef WIN32 int ignore_serial_number(const char *pro, const char *chip, const char */*comp*/, uint16_t vid, uint16_t pid, uint16_t /*bcdlow*/, uint16_t /*bcdhigh*/, void */*p*/) { printf("\t %s\t %s\t 0x%04X\t0x%04X\n", chip, pro, vid, pid); @@ -800,6 +801,7 @@ int ignore_serial_number(const char *pro, const char *chip, const char */*comp*/ printf("Set key failure, try run as administrator permission\n"); return -1; } +#endif int set_ignore_serial_number() {