From aad38e66b175bd6212f14985630322e69ede08b9 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 23 Aug 2009 16:21:49 +0000 Subject: [PATCH] MFC r196472: 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 "..". Approved by: re (rwatson) git-svn-id: svn://svn.freebsd.org/base/stable/8@196473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/wpa/wpa_cli/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/wpa/wpa_cli/Makefile b/usr.sbin/wpa/wpa_cli/Makefile index ae16a72a0..123485a91 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 -- 2.45.0