• 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/aiccu/0005-res-ninit.patch
Alex SuykovAlex Suykov committed 0b2a78668a030 Mar 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
res_ninit is available in glibc but not in uclibc or musl.
2
​
3
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
4
​
5
--- aiccu/common/resolver.c
6
+++ aiccu/common/resolver.c
7
@@ -26,7 +26,7 @@
8
 
9
 int getrrs(const char *label, int rrtype, void gotrec(unsigned int num, int type, const char *record))
10
 {
11
-#ifdef _LINUX
12
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
13
    struct __res_state  res;
14
 #endif
15
    unsigned char       answer[8192];
16
@@ -38,7 +38,7 @@ int getrrs(const char *label, int rrtype
17
    uint16_t        type = 0, class = 0;
18
    uint32_t        ttl = 0;
19
 
20
-#ifdef _LINUX
21
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
22
    memset(&res, 0, sizeof(res));
23
    res.options = RES_DEBUG;
24
    res_ninit(&res);
25
@@ -47,7 +47,7 @@ int getrrs(const char *label, int rrtype
26
 #endif
27
 
28
    memset(answer, 0, sizeof(answer));
29
-#ifdef _LINUX
30
+#if defined(__GLIBC__) && !defined(__UCLIBC__)
31
    ret = res_nquery(&res, label, C_IN, rrtype, answer, sizeof(answer));
32
 #else
33
    ret = res_query(label, C_IN, rrtype, answer, sizeof(answer));
  • 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.