ObjFW  Check-in [f6761575c6]

Overview
Comment:Properly check for thread-safe getaddrinfo if it's unknown.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.5
Files: files | file ages | folders
SHA3-256: f6761575c6c0699549228ba7027b00cb405ba22d034aea51616150271733fab7
User & Date: js on 2011-05-29 21:45:14
Other Links: branch diff | manifest | tags
Context
2011-06-30
23:24
Set version to 0.5.3. check-in: 898c1402ce user: js tags: 0.5
2011-05-29
21:45
Properly check for thread-safe getaddrinfo if it's unknown. check-in: f6761575c6 user: js tags: 0.5
2011-04-28
18:15
Nicer description for empty collections. check-in: bbb3994c06 user: js tags: 0.5
Changes

Modified configure.ac from [cb6421372f] to [22356cbc7d].

469
470
471
472
473
474
475



476






477
478
479
480
481
482
483
			*)
				have_threadsafe_getaddrinfo="unknown"
				;;
		esac

		AS_IF([test x"$have_threadsafe_getaddrinfo" = x"unknown"], [
			AC_EGREP_CPP(yes, [



				#include <netdb.h>






				#ifdef h_errno
				yes
				#end
			], [
				have_threadsafe_getaddrinfo="yes"
			], [
				have_threadsafe_getaddrinfo="no"







>
>
>
|
>
>
>
>
>
>







469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
			*)
				have_threadsafe_getaddrinfo="unknown"
				;;
		esac

		AS_IF([test x"$have_threadsafe_getaddrinfo" = x"unknown"], [
			AC_EGREP_CPP(yes, [
				#ifndef _WIN32
				# include <sys/types.h>
				# include <sys/socket.h>
				# include <netdb.h>
				#else
				# define _WIN32_WINNT 0x0501
				# include <windows.h>
				# include <ws2tcpip.h>
				#endif

				#ifdef h_errno
				yes
				#end
			], [
				have_threadsafe_getaddrinfo="yes"
			], [
				have_threadsafe_getaddrinfo="no"