diff mbox

odp_shared_memory.c: fix std=c99 error

Message ID 1413567312-18214-1-git-send-email-mike.holmes@linaro.org
State Accepted
Commit 61cdeff1c31dbbaea9e1c595a8f814085e3d043f
Headers show

Commit Message

Mike Holmes Oct. 17, 2014, 5:35 p.m. UTC
Fix undeclared use of flags S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/odp_shared_memory.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Maxim Uvarov Oct. 21, 2014, 12:07 p.m. UTC | #1
merged!
Maxim.

On 10/17/2014 09:35 PM, Mike Holmes wrote:
> Fix undeclared use of flags S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH
>
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>   platform/linux-generic/odp_shared_memory.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c
> index 1898a34..60a868b 100644
> --- a/platform/linux-generic/odp_shared_memory.c
> +++ b/platform/linux-generic/odp_shared_memory.c
> @@ -13,6 +13,7 @@
>   
>   #include <unistd.h>
>   #include <sys/mman.h>
> +#include <sys/stat.h>
>   #include <asm/mman.h>
>   #include <fcntl.h>
>
diff mbox

Patch

diff --git a/platform/linux-generic/odp_shared_memory.c b/platform/linux-generic/odp_shared_memory.c
index 1898a34..60a868b 100644
--- a/platform/linux-generic/odp_shared_memory.c
+++ b/platform/linux-generic/odp_shared_memory.c
@@ -13,6 +13,7 @@ 
 
 #include <unistd.h>
 #include <sys/mman.h>
+#include <sys/stat.h>
 #include <asm/mman.h>
 #include <fcntl.h>