diff mbox

wpa_ctrl missing include for sys/stat.h

Message ID CAH7ZN-xpK2k1NLyiqQPU4atQAm1qSLA7=c6wkgZ_+AgnbBT1+Q@mail.gmail.com
State Accepted
Headers show

Commit Message

Dmitry Shmidt April 2, 2015, 5:58 p.m. UTC
From: Mark Salyzyn <salyzyn@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@google.com>
---
 src/common/wpa_ctrl.c | 1 +
 1 file changed, 1 insertion(+)

--
2.2.0.rc0.207.ga3a616c

Comments

Jouni Malinen April 3, 2015, 10:23 a.m. UTC | #1
On Thu, Apr 02, 2015 at 10:58:52AM -0700, Dmitry Shmidt wrote:
> 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.

Thanks, applied.
diff mbox

Patch

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 */