Skip to content

Commit

Permalink
bug 626866 - Fennec doesn't support IPv6 on Android r=blassey a=block…
Browse files Browse the repository at this point in the history
…ing-fennec
  • Loading branch information
wantehchang committed Jan 31, 2011
1 parent ac489ca commit 6fb5cdc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion nsprpub/pr/include/md/_linux.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ static inline PRInt32 _MD_ATOMIC_SET(PRInt32 *ptr, PRInt32 nv)
#else
#define _PR_NO_LARGE_FILES
#endif
#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)
#if (__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) \
|| defined(ANDROID)
#define _PR_INET6
#define _PR_HAVE_INET_NTOP
#define _PR_HAVE_GETHOSTBYNAME2
Expand All @@ -284,6 +285,7 @@ static inline PRInt32 _MD_ATOMIC_SET(PRInt32 *ptr, PRInt32 nv)
#define _PR_HAVE_SYSV_SEMAPHORES
#define PR_HAVE_SYSV_NAMED_SHARED_MEMORY
#endif
/* Android has gethostbyname_r but not gethostbyaddr_r or gethostbyname2_r. */
#if (__GLIBC__ >= 2) && defined(_PR_PTHREADS)
#define _PR_HAVE_GETHOST_R
#define _PR_HAVE_GETHOST_R_INT
Expand Down
3 changes: 2 additions & 1 deletion nsprpub/pr/src/linking/prlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,8 @@ PR_LoadStaticLibrary(const char *name, const PRStaticLinkTable *slt)
PR_IMPLEMENT(char *)
PR_GetLibraryFilePathname(const char *name, PRFuncPtr addr)
{
#if defined(USE_DLFCN) && !defined(ANDROID) && (defined(SOLARIS) || defined(FREEBSD) \
#if defined(USE_DLFCN) && !defined(ANDROID) \
&& (defined(SOLARIS) || defined(FREEBSD) \
|| defined(LINUX) || defined(__GNU__) || defined(__GLIBC__) \
|| defined(DARWIN))
Dl_info dli;
Expand Down
4 changes: 2 additions & 2 deletions nsprpub/pr/src/misc/prnetdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ PRLock *_pr_dnsLock = NULL;

#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) \
|| (defined(LINUX) && defined(_REENTRANT) \
&& !(defined(__GLIBC__) && __GLIBC__ >= 2)) \
&& !defined(ANDROID)
&& !(defined(__GLIBC__) && __GLIBC__ >= 2) \
&& !defined(ANDROID))
#define _PR_HAVE_GETPROTO_R
#define _PR_HAVE_GETPROTO_R_POINTER
#endif
Expand Down

0 comments on commit 6fb5cdc

Please sign in to comment.