ObjFW  Check-in [f1bea237ab]

Overview
Comment:Properly check for thread-safe getaddrinfo if it's unknown.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f1bea237abd46ec6476385ae73f066676399071fa81654f06d0cab20a53029c6
User & Date: js on 2011-05-29 21:45:14
Other Links: manifest | tags
Context
2011-05-29
21:46
Fix 3 typos introduced by style changes. check-in: 4090b00720 user: js tags: trunk
21:45
Properly check for thread-safe getaddrinfo if it's unknown. check-in: f1bea237ab user: js tags: trunk
2011-05-26
17:23
Add OFEnumerating protocol. check-in: 6ddfe1975c user: js tags: trunk
Changes

Modified configure.ac from [1aa012915c] to [0fb16c8957].

448
449
450
451
452
453
454



455






456
457
458
459
460
461
462
			*)
				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"







>
>
>
|
>
>
>
>
>
>







448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
			*)
				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"