gethostbyname_r: set correct h_errno upon failure
gethostbyname_r: set correct h_errno upon failure

previously gethostbyname_r(ipv6.google.com);herror("ERROR:") gave
Answer name = |ipv6.google.com|
Answer type = |5|
herrno=1
h_errno=0
ERROR:: Error 0

herrno=1
h_errno=1
ERROR:: Unknown host

Signed-off-by: Bernhard Reutner-Fischer <ce1ac9e9ad16abccd7821f371ad381197b4768ac@gmail.com>

hjl-tools/uClibc,foss-xtensa/uClibc,ffainelli/uClibc,waweber/uclibc-clang,wbx-github/uclibc-ng,kraj/uclibc-ng,groundwater/uClibc,hjl-tools/uClibc,ddcc/klee-uclibc-0.9.33.2,groundwater/uClibc,hjl-tools/uClibc,foss-xtensa/uClibc,majek/uclibc-vx32,ddcc/klee-uclibc-0.9.33.2,ndmsystems/uClibc,kraj/uClibc,atgreen/uClibc-moxie,czankel/xtensa-uclibc,mephi42/uClibc,groundwater/uClibc,hwoarang/uClibc,ffainelli/uClibc,ddcc/klee-uclibc-0.9.33.2,atgreen/uClibc-moxie,ddcc/klee-uclibc-0.9.33.2,hwoarang/uClibc,majek/uclibc-vx32,ffainelli/uClibc,brgl/uclibc-ng,waweber/uclibc-clang,foss-for-synopsys-dwc-arc-processors/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,skristiansson/uClibc-or1k,groundwater/uClibc,ffainelli/uClibc,skristiansson/uClibc-or1k,hwoarang/uClibc,kraj/uClibc,foss-xtensa/uClibc,kraj/uclibc-ng,atgreen/uClibc-moxie,foss-for-synopsys-dwc-arc-processors/uClibc,ffainelli/uClibc,mephi42/uClibc,czankel/xtensa-uclibc,wbx-github/uclibc-ng,groundwater/uClibc,foss-xtensa/uClibc,mephi42/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,majek/uclibc-vx32,ndmsystems/uClibc,czankel/xtensa-uclibc,brgl/uclibc-ng,skristiansson/uClibc-or1k,kraj/uClibc,waweber/uclibc-clang,kraj/uClibc,hjl-tools/uClibc,wbx-github/uclibc-ng,hwoarang/uClibc,hjl-tools/uClibc,brgl/uclibc-ng,skristiansson/uClibc-or1k,atgreen/uClibc-moxie,ndmsystems/uClibc,kraj/uclibc-ng,kraj/uclibc-ng,czankel/xtensa-uclibc,wbx-github/uclibc-ng,brgl/uclibc-ng,waweber/uclibc-clang,majek/uclibc-vx32,ndmsystems/uClibc,mephi42/uClibc