]> rtime.felk.cvut.cz Git - l4.git/blobdiff - l4/pkg/uclibc/lib/contrib/uclibc/libc/inet/getaddrinfo.c
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / inet / getaddrinfo.c
index b91486f538aec28c26a5a285a5e0e4d1375b92e0..cdfdb72cfe84a51486d5a325cb98fa3867f4c495 100644 (file)
@@ -56,6 +56,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <assert.h>
 #include <errno.h>
 #include <netdb.h>
+#ifdef __UCLIBC_HAS_TLS__
+#include <tls.h>
+#endif
 #include <resolv.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -307,7 +310,7 @@ gaih_local(const char *name, const struct gaih_service *service,
                char *buf = ((struct sockaddr_un *)ai->ai_addr)->sun_path;
 
                if (__path_search(buf, L_tmpnam, NULL, NULL, 0) != 0
-                || __gen_tempname(buf, __GT_NOCREATE) != 0
+                || __gen_tempname(buf, __GT_NOCREATE, 0) != 0
                ) {
                        return -EAI_SYSTEM;
                }