ObjFW  Check-in [40169c71ae]

Overview
Comment:configure: Better includes for sockaddr_dl check
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 40169c71ae321519205f88b2b194126524ab5abf43da5c77856e374fc866f3cb
User & Date: js on 2023-04-24 17:43:01
Other Links: manifest | tags
Context
2023-04-24
22:04
Avoid redefinition of _LARGEFILE64_SOURCE check-in: 0c471da638 user: js tags: trunk
17:43
configure: Better includes for sockaddr_dl check check-in: 40169c71ae user: js tags: trunk
17:21
OFSystemInfo: Get MAC address on BSD-like systems check-in: 285c76be40 user: js tags: trunk
Changes

Modified configure.ac from [fdec0da095] to [3a58dbf66e].

1766
1767
1768
1769
1770
1771
1772

1773


1774
1775
1776
1777
1778
1779
1780
1766
1767
1768
1769
1770
1771
1772
1773

1774
1775
1776
1777
1778
1779
1780
1781
1782







+
-
+
+







	AC_CHECK_HEADERS(ifaddrs.h net/if_types.h net/if_dl.h)
	AC_CHECK_HEADERS(netpacket/packet.h)
	AC_CHECK_FUNC(getifaddrs, [
		AC_DEFINE(OF_SYSTEM_INFO_HAS_NETWORK_INTERFACES, 1,
			[Whether OFSystemInfo has network interfaces])
	])
	AC_CHECK_TYPES([struct sockaddr_dl], [], [], [
		#ifdef HAVE_SYS_TYPES_H
		#include <stdint.h>
		# include <sys/types.h>
		#endif
		#ifdef HAVE_NET_IF_DL_H
		# include <net/if_dl.h>
		#endif
	])
	AC_CHECK_TYPES([struct sockaddr_ll], [], [], [
		#ifdef HAVE_NETPACKET_PACKET_H
		# include <netpacket/packet.h>