[FFmpeg-cvslog] r21148 - trunk/configure

Michael Niedermayer michaelni
Tue Jan 12 02:55:15 CET 2010


On Mon, Jan 11, 2010 at 10:43:51PM +0000, M?ns Rullg?rd wrote:
> Michael Kostylev <michael.kostylev at gmail.com> writes:
> 
> > On Mon Jan 11 18:42:16 2010
> > rbultje wrote:
> >
> >> Author: rbultje
> >> Date: Mon Jan 11 18:42:15 2010
> >> New Revision: 21148
> >> 
> >> Log:
> >> Check for struct sockaddr_storage. Patch by Martin Storsj?
> >> <$firstname()$firstname,st>.
> >> 
> >> Modified:
> >>    trunk/configure
> >> 
> >> Modified: trunk/configure
> >> ==============================================================================
> >> --- trunk/configure	Mon Jan 11 18:32:40 2010	(r21147)
> >> +++ trunk/configure	Mon Jan 11 18:42:15 2010	(r21148)
> >> @@ -990,6 +990,7 @@ HAVE_LIST="
> >>      soundcard_h
> >>      poll_h
> >>      struct_addrinfo
> >> +    struct_sockaddr_storage
> >>      sys_mman_h
> >>      sys_resource_h
> >>      sys_select_h
> >> @@ -2451,6 +2452,7 @@ texi2html -version > /dev/null 2>&1 && e
> >>  if enabled network; then
> >>      check_type "sys/types.h sys/socket.h" socklen_t
> >>      check_type netdb.h "struct addrinfo"
> >> +    check_type sys/socket.h "struct sockaddr_storage"
> >>      # Prefer arpa/inet.h over winsock2
> >>      if check_header arpa/inet.h ; then
> >>          check_func closesocket
> >
> > The test fails on OpenBSD:
> > check_type sys/socket.h struct sockaddr_storage
> > check_cc
> > BEGIN /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c
> >     1
> >     2   #include <sys/socket.h>
> >     3   struct sockaddr_storage v;
> > END /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c
> > ccache gcc -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -c
> > -o /usr/src/fate/build/tmp/ffconf.XXXXX...26485.o /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c
> > In file included from /usr/src/fate/build/tmp/ffconf.XXXXX...26485.c:2:
> > /usr/include/sys/socket.h:152: error: syntax error before "u_int8_t"
> > /usr/include/sys/socket.h:170: error: syntax error before "u_int8_t"
> > /usr/include/sys/socket.h:173: error: syntax error before "u_int64_t"
> >
> > It seems sys/socket.h is completely unusable without sys/types.h,
> > but the latter is not included from the former.
> 
> FUCKING IDIOTS
> 
> The specification for sys/socket.h mentions NO types from sys/types.h.
> 
> If this continues, we may well have to kill BSD support.  It's just
> not worth the trouble.

we could at a strategic point add a
#if HAVE_FUCKING_IDIOTS
#include <sys/types.h>
#endif

ideally thugh the bsd developers would add that to sys/socket.h and
#define __HAVE_FUCKING_IDIOTS 1
above it

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20100112/99d019a7/attachment.pgp>



More information about the ffmpeg-cvslog mailing list