Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2009 16:04:10 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196472 - head/usr.sbin/wpa/wpa_cli
Message-ID:  <200908231604.n7NG4ABo065583@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908231604.n7NG4ABo065583>