svn commit: r196472 - head/usr.sbin/wpa/wpa_cli

Sam Leffler sam at FreeBSD.org
Sun Aug 23 16:04:10 UTC 2009


Author: sam
Date: Sun Aug 23 16:04:10 2009
New Revision: 196472
URL: http://svn.freebsd.org/changeset/base/196472

Log:
  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 at gmail.com>
  MFC after:	3 days

Modified:
  head/usr.sbin/wpa/wpa_cli/Makefile

Modified: head/usr.sbin/wpa/wpa_cli/Makefile
==============================================================================
--- head/usr.sbin/wpa/wpa_cli/Makefile	Sun Aug 23 15:02:58 2009	(r196471)
+++ head/usr.sbin/wpa/wpa_cli/Makefile	Sun Aug 23 16:04:10 2009	(r196472)
@@ -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


More information about the svn-src-head mailing list