[FFmpeg-devel] [PATCH][RFC] -std=c99

Chris Hills chaz
Sun Aug 17 22:50:04 CEST 2008


Ivan Kalvachev wrote:
> Problems. It may not be directly related...
>
> Two users on irc, both using archlinux with gcc-4.3 and glibc 2.8 are having same problem compiling libavformat/udp.c . Reason:
>
> /usr/include/netinet/in.h:
> ...
> #if defined __USE_MISC || defined __USE_GNU
> /* IPv4 multicast request.  */
> struct ip_mreq
> ...
>
> I said it may not be related because users doesn't report any success with removing -std or using -std=gnu99

This fixes the problem for me on Ark (not Arch!):-

--- configure   (revision 14800)
+++ configure   (working copy)
@@ -1852,6 +1852,9 @@
   check_cflags -Wwrite-strings
   check_cflags -Wtype-limits
   enabled extra_warnings && check_cflags -Winline
+check_cflags -std=c99
+check_cflags -fasm
+check_cflags -D_BSD_SOURCE

   # add some linker flags
   check_ldflags -Wl,--warn-common





More information about the ffmpeg-devel mailing list