]> git.sesse.net Git - vlc/commitdiff
Fix GCC error message: undefined reference to `__sync_fetch_and_sub_4`
authorJean-Paul Saman <jpsaman@videolan.org>
Sun, 21 Sep 2008 17:42:27 +0000 (19:42 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Sun, 21 Sep 2008 17:48:24 +0000 (19:48 +0200)
The exact error message is: src/.libs/libvlccore.so: undefined reference to `__sync_fetch_and_sub_4'. According to irc discussion gcc version 4.1.2 (fc8), 4.1.3, 4.2, 4,3.2 and 4.3.2 (archlinux) fail with this error message. This patch fixes it by bumping up the minor number for gcc to 4.

src/libvlc.c

index ee87b4c25f13559a34bd4575b705a3f66854a365..128ae90be3d8a479f36e96a0a04ca39fe3a35942 100644 (file)
@@ -77,7 +77,7 @@
 #endif
 
 #if defined(__GNUC__)
-#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 0)
+#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)
 #define USE_SYNC
 #endif
 #endif