]> git.sesse.net Git - vlc/commitdiff
Provide default for vlc_pthread_fatal
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 24 May 2008 09:09:00 +0000 (12:09 +0300)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 24 May 2008 09:09:00 +0000 (12:09 +0300)
src/misc/threads.c

index fc70d91b22d9d6d83196a47b0f257a27e69e896a..0ab4efaf655d6adf018e6d092d1768270ce86d81 100644 (file)
@@ -73,7 +73,6 @@ static inline unsigned long vlc_threadid (void)
      return v.i;
 }
 
-
 /*****************************************************************************
  * vlc_thread_fatal: Report an error from the threading layer
  *****************************************************************************
@@ -114,9 +113,15 @@ void vlc_pthread_fatal (const char *action, int error,
     fflush (stderr);
     abort ();
 }
+#else
+void vlc_pthread_fatal (const char *action, int error,
+                        const char *file, unsigned line)
+{
+    (void)action; (void)error; (void)file; (void)line;
+    abort();
+}
 #endif
 
-
 /*****************************************************************************
  * vlc_threads_init: initialize threads system
  *****************************************************************************