[PATCH] wpa_ctrl missing include for sys/stat.h

Dmitry Shmidt dimitrysh
Thu Apr 2 10:58:52 PDT 2015

From: Mark Salyzyn <salyzyn at google.com>
Date: Tue, 31 Mar 2015 17:58:11 -0700

wpa_ctrl.c gets sys/stat.h inherited from
private/android_filesystem_config.h it should
not rely on this in the future. The intent is
to move fs_config function into libcutils and
thus deprecate any need for sys/stat.h in this
include file.

Signed-off-by: Dmitry Shmidt <dimitrysh at google.com>
 src/common/wpa_ctrl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common/wpa_ctrl.c b/src/common/wpa_ctrl.c
index ccaaf1b..82d4655 100644
--- a/src/common/wpa_ctrl.c
+++ b/src/common/wpa_ctrl.c
@@ -21,6 +21,7 @@

 #ifdef ANDROID
 #include <dirent.h>
+#include <sys/stat.h>
 #include <cutils/sockets.h>
 #include "private/android_filesystem_config.h"
 #endif /* ANDROID */

More information about the Hostap mailing list