summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2008-05-21 14:56:27 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2008-05-21 14:56:27 -0700
commit165c0865d849b7d280a3a119fe9ae0ad34637df0 (patch)
treea87b184440527710134ff4bd50caf73eb0f5e754
parent71180653825a1b141a08590e4b767d33d9b5d8c1 (diff)
Define DEFFILEMODE for OS'es that don't have it
-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");