Linux: Silence unused variable warnings without CLOCK_MONOTONIC
authorXiaofan Chen <xiaofanc@gmail.com>
Sat, 14 Apr 2012 15:17:18 +0000 (23:17 +0800)
committerPete Batard <pete@akeo.ie>
Fri, 20 Apr 2012 21:16:57 +0000 (22:16 +0100)
libusb/os/linux_usbfs.c
libusb/version.h

index f2b312d..416efc4 100644 (file)
@@ -207,10 +207,10 @@ static const char *find_usbfs_path(void)
  * seem to lack it). fall back to REALTIME if we have to. */
 static clockid_t find_monotonic_clock(void)
 {
+#ifdef CLOCK_MONOTONIC
        struct timespec ts;
        int r;
 
-#ifdef CLOCK_MONOTONIC
        /* Linux 2.6.28 adds CLOCK_MONOTONIC_RAW but we don't use it
         * because it's not available through timerfd */
        r = clock_gettime(CLOCK_MONOTONIC, &ts);
index 1b94eb6..b4386fc 100644 (file)
@@ -9,7 +9,7 @@
 #define LIBUSB_MICRO 10
 #endif
 #ifndef LIBUSB_NANO
-#define LIBUSB_NANO 10478
+#define LIBUSB_NANO 10479
 #endif
 /* LIBUSB_RC is the release candidate suffix. Should normally be empty. */
 #ifndef LIBUSB_RC