summaryrefslogtreecommitdiffstats
path: root/usr.sbin/wpa
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-08-23 16:04:10 +0000
committersam <sam@FreeBSD.org>2009-08-23 16:04:10 +0000
commit1ad78eee35cb8783e96c703aa7139b2a609e7332 (patch)
tree7d393beed5075b5f740227ad62b80ccb5bfa37d4 /usr.sbin/wpa
parent61ec6f94ad96ba6ab04f839f03a45b60260e0425 (diff)
downloadFreeBSD-src-1ad78eee35cb8783e96c703aa7139b2a609e7332.zip
FreeBSD-src-1ad78eee35cb8783e96c703aa7139b2a609e7332.tar.gz
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 <jamesbrandongooch@gmail.com> MFC after: 3 days
Diffstat (limited to 'usr.sbin/wpa')
-rw-r--r--usr.sbin/wpa/wpa_cli/Makefile2
1 files changed, 2 insertions, 0 deletions
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
OpenPOWER on IntegriCloud