]> git.sesse.net Git - vlc/commitdiff
Fix stupid logic
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Dec 2007 20:42:12 +0000 (20:42 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 19 Dec 2007 20:42:12 +0000 (20:42 +0000)
src/misc/mtime.c

index d89bbf9352aefc0e90f4abb94839c53393544297..955e3d3e243c1cbbc545dfb1ee94d0d524d3fba4 100644 (file)
@@ -76,9 +76,9 @@ int nanosleep(struct timespec *, struct timespec *);
  */
 #  undef CLOCK_MONOTONIC
 #  define CLOCK_MONOTONIC CLOCK_REALTIME
-#  ifndef HAVE_CLOCK_NANOSLEEP
-#   error We have quite a situation here! Fix me if it ever happens.
-#  endif
+#elif !defined (HAVE_CLOCK_NANOSLEEP)
+/* Clock selection without clock in the first place, I don't think so. */
+#  error We have quite a situation here! Fix me if it ever happens.
 #endif
 
 /**