summaryrefslogtreecommitdiff
path: root/recipes/gnet/files/configure_fix.patch
blob: e6aadcc6a930c8e68d81d622686bfe9659171db9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
Index: trunk/configure.ac
===================================================================
--- trunk.orig/configure.ac
+++ trunk/configure.ac
@@ -332,53 +332,6 @@ AC_DEFINE_UNQUOTED(GNET_SOCKADDR_FAMILY_
           [$gnet_sockaddr_family_field_name],
           [Name of sockaddr_storage family field])
 
-dnl #######################################
-dnl Check if abstract sockets are supported
-dnl #######################################
- 
-AC_LANG_PUSH(C)
-AC_CACHE_CHECK([for abstract socket namespace availability],
-		ac_cv_gnet_have_abstract_sockets,
-		[AC_RUN_IFELSE([AC_LANG_PROGRAM(
-[[
-#include <sys/types.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdio.h>
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <errno.h>
-]],
-[[
-  int listen_fd, len;
-  struct sockaddr_un addr;
-  
-  listen_fd = socket (PF_UNIX, SOCK_STREAM, 0);
-  if (listen_fd < 0) {
-    perror ("socket() failed: ");
-    exit (1);
-  }
-  memset (&addr, '\0', sizeof (addr));
-  addr.sun_family = AF_UNIX;
-  strcpy (addr.sun_path, "X/tmp/gnet-fake-socket-path-used-in-configure-test");
-  len = SUN_LEN (&addr); /* calculate size before adding the \0 */
-  addr.sun_path[0] = '\0'; /* this is what makes it abstract */
-  
-  if (bind (listen_fd, (struct sockaddr*) &addr, len) < 0) {
-    perror ("Abstract socket namespace bind() failed: ");
-    exit (1);
-  }
-  exit (0);
-]])],
-              [ac_cv_gnet_have_abstract_sockets=yes],
-              [ac_cv_gnet_have_abstract_sockets=no]
-)])
-AC_LANG_POP(C)
-
-if test x$ac_cv_gnet_have_abstract_sockets = xyes ; then
-   AC_DEFINE(HAVE_ABSTRACT_SOCKETS,1,[Have abstract socket namespace])
-fi
-
 ###############################
 # Compiler characteristics
 AC_C_CONST