diff options
author | Joshua Lock <josh@linux.intel.com> | 2008-11-06 16:24:30 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2008-11-06 16:24:30 +0000 |
commit | 47b05dab4873022016b2063c6049885a43131422 (patch) | |
tree | 6191e1976b0a53a873028ba915d787b1c9711ed8 /meta/packages/gnet/files | |
parent | 1e6f21407fb80832473efa38875c232bce89d32f (diff) | |
download | openembedded-core-47b05dab4873022016b2063c6049885a43131422.tar.gz openembedded-core-47b05dab4873022016b2063c6049885a43131422.tar.bz2 openembedded-core-47b05dab4873022016b2063c6049885a43131422.tar.xz openembedded-core-47b05dab4873022016b2063c6049885a43131422.zip |
gnet from OE plus a configure fix for cross-compile environments.
Diffstat (limited to 'meta/packages/gnet/files')
-rw-r--r-- | meta/packages/gnet/files/buildfix.patch | 13 | ||||
-rw-r--r-- | meta/packages/gnet/files/configure_fix.patch | 58 |
2 files changed, 71 insertions, 0 deletions
diff --git a/meta/packages/gnet/files/buildfix.patch b/meta/packages/gnet/files/buildfix.patch new file mode 100644 index 000000000..806762026 --- /dev/null +++ b/meta/packages/gnet/files/buildfix.patch @@ -0,0 +1,13 @@ +Index: gnet/examples/Makefile.am +=================================================================== +--- gnet.orig/examples/Makefile.am ++++ gnet/examples/Makefile.am +@@ -2,7 +2,7 @@ + + @SET_MAKE@ + +-SUBDIRS = xmlrpc ++SUBDIRS = + + if OS_WIN32 + noinst_PROGRAMS = echoclient echoserver \ diff --git a/meta/packages/gnet/files/configure_fix.patch b/meta/packages/gnet/files/configure_fix.patch new file mode 100644 index 000000000..e6aadcc6a --- /dev/null +++ b/meta/packages/gnet/files/configure_fix.patch @@ -0,0 +1,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 |