From 288cad1c2e401e5dfbd029b95f62ca05c85d3d61 Mon Sep 17 00:00:00 2001 From: pancake Date: Mon, 14 Jan 2008 11:25:08 +0100 Subject: * Up to 0.3.2 * Add HAVE_USB to config.mk - Now is possible to build a usb-less version of the flasher (only for unpacking and so, offline operations) * Refactor varname. Avoid portability problems: - reboot -> moboreboot --- src/main.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index 2fbd15a..72ad491 100644 --- a/src/main.h +++ b/src/main.h @@ -25,6 +25,8 @@ void eprintf(const char *format, ...); #ifndef PATH_MAX #define PATH_MAX 4096 #endif + +#if HAVE_USB #include extern struct usb_device *device; @@ -34,6 +36,8 @@ void list_valid_devices(); int usb_device_found(struct usb_device_descriptor *udd, struct devices *it_device); int console(const char *device); int connect_via_usb(); +#endif + int console_prompt(); // -- cgit v1.2.3