summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-05-21 14:56:27 -0700
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-06-12 13:41:40 +0800
commit5dd06d08015cf9c0721f34f7005ecd670025c334 (patch)
treebe4b3e67b158a20a8520ad03640657d216374f76 /src
parent87ace420a34df7425641d089f71830e44fced098 (diff)
Define DEFFILEMODE for OS'es that don't have it
(cherry picked from commit 165c0865d849b7d280a3a119fe9ae0ad34637df0)
Diffstat (limited to 'src')
-rw-r--r--src/bios_reader/bios_dumper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bios_reader/bios_dumper.c b/src/bios_reader/bios_dumper.c
index e2f3064e..1353edaa 100644
--- a/src/bios_reader/bios_dumper.c
+++ b/src/bios_reader/bios_dumper.c
@@ -36,6 +36,10 @@
#include <pciaccess.h>
#include <err.h>
+#ifndef DEFFILEMODE
+#define DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH) /* 0666*/
+#endif
+
static void usage(void)
{
fprintf(stderr, "usage: bios_dumper <filename>\n");