blob: f78b7c26f1cd18485567dd5c22c38752c03a40c8 [file] [log] [blame]
From fb967ecc584c20c74a007de749ca597068b0fcac Mon Sep 17 00:00:00 2001
From: Liu Aleaxander <aleaxander@gmail.com>
Date: Tue, 29 Jun 2010 15:05:40 -0700
Subject: um: os-linux/mem.c needs sys/stat.h
From: Liu Aleaxander <aleaxander@gmail.com>
commit fb967ecc584c20c74a007de749ca597068b0fcac upstream.
The os-linux/mem.c file calls fchmod function, which is declared in sys/stat.h
header file, so include it. Fixes build breakage under FC13.
Signed-off-by: Liu Aleaxander <Aleaxander@gmail.com>
Acked-by: Boaz Harrosh <bharrosh@panasas.com>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
arch/um/os-Linux/mem.c | 1 +
1 file changed, 1 insertion(+)
--- a/arch/um/os-Linux/mem.c
+++ b/arch/um/os-Linux/mem.c
@@ -10,6 +10,7 @@
#include <errno.h>
#include <fcntl.h>
#include <string.h>
+#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/param.h>
#include "init.h"