1. 03 Nov, 2014 2 commits
    • Peter Wu's avatar
      cmake: fix gethostby{addr,name}_r in CurlTests · aebfd4cf
      Peter Wu authored
      
      
      This patch cleans up the automatically-generated (?) code and fixes one
      case that will always fail due to syntax error.
      
      HAVE_GETHOSTBYADDR_R_5_REENTRANT always failed because of a trailing
      character ("int length;q"). Several parameter type and unused variable
      warnings popped up. This causes a detection failure with -Werror.
      
      Observe that the REENTRANT cases are exactly the same as their
      non-REENTRANT cases except for a `_REENTRANT` macro definition.
      Merge all these pieces and build one big main function with different
      cases, but reusing variables where logical.
      
      For the cases where the parameters where NULL, I looked at
      lib/hostip4.c to get an idea of the parameters types.
      
      void-cast variables such as 'rc' to avoid -Wuninitialized errors.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      aebfd4cf
    • Peter Wu's avatar
      cmake: drop _BSD_SOURCE macro usage · b2bb51f3
      Peter Wu authored
      
      
      autotools does not use features.h nor _BSD_SOURCE. As this macro
      triggers warnings since glibc 2.20, remove it. It should not have
      functional differences.
      
      Signed-off-by: default avatarPeter Wu <peter@lekensteyn.nl>
      b2bb51f3
  2. 02 Nov, 2014 17 commits
  3. 01 Nov, 2014 4 commits
  4. 31 Oct, 2014 4 commits
  5. 30 Oct, 2014 7 commits
  6. 29 Oct, 2014 6 commits