ObjFW  Check-in [0eac7f0771]

Overview
Comment:Fix the getaddrinfo test on win32.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 0eac7f077166954bb94f8ab52e1f52c823e128430e14074cf245daa7f71635c3
User & Date: js on 2011-03-30 22:00:34
Other Links: manifest | tags
Context
2011-03-31
00:34
Add +[elementWithString:] to OFXMLElement. check-in: 415449f99b user: js tags: trunk
2011-03-30
22:00
Fix the getaddrinfo test on win32. check-in: 0eac7f0771 user: js tags: trunk
17:43
A few minor improvements in configure.ac. check-in: df6f3a1895 user: js tags: trunk
Changes

Modified configure.ac from [1e4f0b049e] to [8b1a798367].

405
406
407
408
409
410
411

412
413
414
415
416
417
418
	#include <stddef.h>
	#ifndef _WIN32
	# include <sys/types.h>
	# include <sys/socket.h>
	# include <netdb.h>
	#else
	# define _WIN32_WINNT 0x0501

	# include <ws2tcpip.h>
	#endif
], [
	struct addrinfo ai;
	getaddrinfo(NULL, NULL, NULL, NULL);
], [
	AC_MSG_RESULT(yes)







>







405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
	#include <stddef.h>
	#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
], [
	struct addrinfo ai;
	getaddrinfo(NULL, NULL, NULL, NULL);
], [
	AC_MSG_RESULT(yes)