summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/gamin/gamin/no-abstract-sockets.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/gamin/gamin/no-abstract-sockets.patch')
-rw-r--r--meta/recipes-extended/gamin/gamin/no-abstract-sockets.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-extended/gamin/gamin/no-abstract-sockets.patch b/meta/recipes-extended/gamin/gamin/no-abstract-sockets.patch
new file mode 100644
index 0000000000..cddf2dc93d
--- /dev/null
+++ b/meta/recipes-extended/gamin/gamin/no-abstract-sockets.patch
@@ -0,0 +1,56 @@
1Upstream-Status: Inappropriate [configuration]
2
3--- /tmp/configure.in 2007-04-30 13:08:49.000000000 +0200
4+++ gamin-0.1.8/configure.in 2007-04-30 13:10:53.285251000 +0200
5@@ -354,51 +354,6 @@
6 AC_DEFINE(HAVE_CMSGCRED,1,[Have cmsgcred structure])
7 fi
8
9-#### Abstract sockets
10-
11-AC_MSG_CHECKING(abstract socket namespace)
12-AC_LANG_PUSH(C)
13-AC_RUN_IFELSE([AC_LANG_PROGRAM(
14-[[
15-#include <sys/types.h>
16-#include <stdlib.h>
17-#include <string.h>
18-#include <stdio.h>
19-#include <sys/socket.h>
20-#include <sys/un.h>
21-#include <errno.h>
22-]],
23-[[
24- int listen_fd;
25- struct sockaddr_un addr;
26-
27- listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
28-
29- if (listen_fd < 0)
30- {
31- fprintf (stderr, "socket() failed: %s\n", strerror (errno));
32- exit (1);
33- }
34-
35- memset (&addr, '\0', sizeof (addr));
36- addr.sun_family = AF_UNIX;
37- strcpy (addr.sun_path, "X/tmp/dbus-fake-socket-path-used-in-configure-test");
38- addr.sun_path[0] = '\0'; /* this is what makes it abstract */
39-
40- if (bind (listen_fd, (struct sockaddr*) &addr, SUN_LEN (&addr)) < 0)
41- {
42- fprintf (stderr, "Abstract socket namespace bind() failed: %s\n",
43- strerror (errno));
44- exit (1);
45- }
46- else
47- exit (0);
48-]])],
49- [have_abstract_sockets=yes],
50- [have_abstract_sockets=no])
51-AC_LANG_POP(C)
52-AC_MSG_RESULT($have_abstract_sockets)
53-
54 if test x$enable_abstract_sockets = xyes; then
55 if test x$have_abstract_sockets = xno; then
56 AC_MSG_ERROR([Abstract sockets explicitly required, and support not detected.])