summaryrefslogtreecommitdiffstats
path: root/physmap.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-21 23:20:15 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-21 23:20:15 +0000
commitdcef67e46875f9600c39716c2ac8b843bb86429c (patch)
tree21e5b1ed74666095913b80cbb08fb0a822bf14ba /physmap.c
parentc96a8bd458a985fdc2ffe299482dfb353728dbd1 (diff)
downloadast2050-flashrom-dcef67e46875f9600c39716c2ac8b843bb86429c.zip
ast2050-flashrom-dcef67e46875f9600c39716c2ac8b843bb86429c.tar.gz
Kill unneeded #include wherever possible
Tested on Linux, FreeBSD, NetBSD, OpenBSD, DOS. Thanks to Jonathan A. Kollasch and Idwer Vollering for testing. Corresponding to flashrom svn r1057. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <vidwer+lists.flashrom@gmail.com>
Diffstat (limited to 'physmap.c')
-rw-r--r--physmap.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/physmap.c b/physmap.c
index 7642938..c65df30 100644
--- a/physmap.c
+++ b/physmap.c
@@ -23,13 +23,17 @@
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
-#include <errno.h>
#include "flash.h"
+/* Do we need any file access or ioctl for physmap or MSR? */
+#if !defined(__DJGPP__)
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <errno.h>
+#endif
+
#ifdef __DJGPP__
#include <dpmi.h>
#include <sys/nearptr.h>
OpenPOWER on IntegriCloud