board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / gamin / 0001-no-abstract-sockets.patch
blob3d659015ec3c047c0d4507334d2f3c6a5a0af914
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
10 @@ -354,51 +354,6 @@
11 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
14 -#### Abstract sockets
16 -AC_MSG_CHECKING(abstract socket namespace)
17 -AC_LANG_PUSH(C)
18 -AC_RUN_IFELSE([AC_LANG_PROGRAM(
19 -[[
20 -#include <sys/types.h>
21 -#include <stdlib.h>
22 -#include <string.h>
23 -#include <stdio.h>
24 -#include <sys/socket.h>
25 -#include <sys/un.h>
26 -#include <errno.h>
27 -]],
28 -[[
29 - int listen_fd;
30 - struct sockaddr_un addr;
32 - listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
34 - if (listen_fd < 0)
35 - {
36 - fprintf (stderr, "socket() failed: %s\n", strerror (errno));
37 - exit (1);
38 - }
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)
46 - {
47 - fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
48 - strerror (errno));
49 - exit (1);
50 - }
51 - else
52 - exit (0);
53 -]])],
54 - [have_abstract_sockets=yes],
55 - [have_abstract_sockets=no])
56 -AC_LANG_POP(C)
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.])