• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/libglib2/libglib2-optional-ipv6.patch
Lionel LandwerlinLionel Landwerlin committed 862b4ca144c26 Dec 2009
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
[PATCH]: fix build on uClibc without IPv6 support
2
​
3
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
4
---
5
 gio/ginetaddress.c |    9 +++++++++
6
 1 file changed, 9 insertions(+)
7
​
8
Index: glib-2.22.4/gio/ginetaddress.c
9
===================================================================
10
--- glib-2.22.4.orig/gio/ginetaddress.c
11
+++ glib-2.22.4/gio/ginetaddress.c
12
@@ -21,6 +21,7 @@
13
  *          Samuel Cormier-Iijima <sciyoshi@gmail.com>
14
  */
15
 
16
+#include <features.h>
17
 #include <config.h>
18
 
19
 #include <string.h>
20
@@ -435,7 +436,11 @@ g_inet_address_new_from_string (const gc
21
   return NULL;
22
 }
23
 
24
+#if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_IPV6__)
25
+#define G_INET_ADDRESS_FAMILY_IS_VALID(family) ((family) == AF_INET)
26
+#else
27
 #define G_INET_ADDRESS_FAMILY_IS_VALID(family) ((family) == AF_INET || (family) == AF_INET6)
28
+#endif
29
 
30
 /**
31
  * g_inet_address_new_from_bytes:
32
@@ -484,8 +489,10 @@ g_inet_address_new_loopback (GSocketFami
33
 
34
       return g_inet_address_new_from_bytes (addr, family);
35
     }
36
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_IPV6__))
37
   else
38
     return g_inet_address_new_from_bytes (in6addr_loopback.s6_addr, family);
39
+#endif
40
 }
41
 
42
 /**
43
@@ -511,8 +518,10 @@ g_inet_address_new_any (GSocketFamily fa
44
 
45
       return g_inet_address_new_from_bytes (addr, family);
46
     }
47
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_IPV6__))
48
   else
49
     return g_inet_address_new_from_bytes (in6addr_any.s6_addr, family);
50
+#endif
51
 }
52
 
53
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.