1 [PATCH]: Remove abstract socket namespace check breaking cross compilation
3 Taken from openembedded:
5 http://git.openembedded.org/cgit.cgi/openembedded/tree/recipes/gamin/files/no-abstract-sockets.patch
7 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
8 --- /tmp/configure.in 2007-04-30 13:08:49.000000000 +0200
9 +++ gamin-0.1.8/configure.in 2007-04-30 13:10:53.285251000 +0200
11 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
14 -#### Abstract sockets
16 -AC_MSG_CHECKING(abstract socket namespace)
18 -AC_RUN_IFELSE([AC_LANG_PROGRAM(
20 -#include <sys/types.h>
24 -#include <sys/socket.h>
30 - struct sockaddr_un addr;
32 - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
36 - fprintf (stderr, "socket() failed: %s\n", strerror (errno));
40 - memset (&addr, '\0', sizeof (addr));
41 - addr.sun_family = AF_UNIX;
42 - strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
43 - addr.sun_path[0] = '\0'; /* this is what makes it abstract */
45 - if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
47 - fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
54 - [have_abstract_sockets=yes],
55 - [have_abstract_sockets=no])
57 -AC_MSG_RESULT($have_abstract_sockets)
59 if test x$enable_abstract_sockets = xyes; then
60 if test x$have_abstract_sockets = xno; then
61 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])