From 1ad78eee35cb8783e96c703aa7139b2a609e7332 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 23 Aug 2009 16:04:10 +0000 Subject: Enable _DIRENT_HAVE_D_TYPE so wpa_cli scans directories properly for it's unix domain socket. Before this change wpa_cli would take the first file in the directory that was not "." or "..". Submitted by: Brandon Gooch MFC after: 3 days --- usr.sbin/wpa/wpa_cli/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.sbin/wpa') diff --git a/usr.sbin/wpa/wpa_cli/Makefile b/usr.sbin/wpa/wpa_cli/Makefile index ae16a72..123485a 100644 --- a/usr.sbin/wpa/wpa_cli/Makefile +++ b/usr.sbin/wpa/wpa_cli/Makefile @@ -11,6 +11,8 @@ MAN= wpa_cli.8 CFLAGS+= -DCONFIG_CTRL_IFACE CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX +# enable use of d_type to identify unix domain sockets +CFLAGS+= -D_DIRENT_HAVE_D_TYPE #CFLAGS+= -DCONFIG_READLINE #LDADD+= -ledit -ltermcap -- cgit v1.1