diff options
author | sam <sam@FreeBSD.org> | 2009-08-23 16:04:10 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-08-23 16:04:10 +0000 |
commit | 1ad78eee35cb8783e96c703aa7139b2a609e7332 (patch) | |
tree | 7d393beed5075b5f740227ad62b80ccb5bfa37d4 /usr.sbin/wpa/wpa_cli | |
parent | 61ec6f94ad96ba6ab04f839f03a45b60260e0425 (diff) | |
download | FreeBSD-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/wpa_cli')
-rw-r--r-- | usr.sbin/wpa/wpa_cli/Makefile | 2 |
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 |