@@ -276,7 +276,7 @@ int icarus_write(int fd, const void *buf, size_t bufLen)
#define icarus_close(fd) serial_close(fd)
-static void do_icarus_close(struct thr_info *thr)
+void do_icarus_close(struct thr_info *thr)
{
struct cgpu_info *icarus = thr->cgpu;
const int fd = icarus->device_fd;
@@ -126,5 +126,6 @@ struct icarus_state {
bool icarus_detect_custom(const char *devpath, struct device_drv *, struct ICARUS_INFO *);
extern int icarus_gets(unsigned char *, int fd, struct timeval *tv_finish, struct thr_info *, int read_count, int read_size);
extern int icarus_write(int fd, const void *buf, size_t bufLen);
+extern void do_icarus_close(struct thr_info *thr);
#endif