diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
commit | 0d4560cb0305029fa5f0739670286176ab47cb65 (patch) | |
tree | 9899f4324664a77e6a5884fdd1541818a28a2172 /apps/plugins/pdbox/PDa/intern/sfwrite~.c | |
parent | eabeb928ddfdbe5fc6379efb87d9522803310649 (diff) | |
download | rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.tar.gz rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.zip |
Accept FS #10244 by Wincent Balin: more pdbox work done for GSoC; also some keyword and line-ending fixes by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/intern/sfwrite~.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/intern/sfwrite~.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/PDa/intern/sfwrite~.c b/apps/plugins/pdbox/PDa/intern/sfwrite~.c index 6b054f17b9..0a6f4e9381 100644 --- a/apps/plugins/pdbox/PDa/intern/sfwrite~.c +++ b/apps/plugins/pdbox/PDa/intern/sfwrite~.c | |||
@@ -1,4 +1,7 @@ | |||
1 | 1 | #ifdef ROCKBOX | |
2 | #include "plugin.h" | ||
3 | #include "pdbox.h" | ||
4 | #else /* ROCKBOX */ | ||
2 | #include <unistd.h> | 5 | #include <unistd.h> |
3 | #include <fcntl.h> | 6 | #include <fcntl.h> |
4 | #include <errno.h> | 7 | #include <errno.h> |
@@ -7,6 +10,7 @@ | |||
7 | #include <unistd.h> | 10 | #include <unistd.h> |
8 | #include <sys/mman.h> | 11 | #include <sys/mman.h> |
9 | #include <sys/stat.h> | 12 | #include <sys/stat.h> |
13 | #endif /* ROCKBOX */ | ||
10 | 14 | ||
11 | #include <m_pd.h> | 15 | #include <m_pd.h> |
12 | #include <m_fixed.h> | 16 | #include <m_fixed.h> |
@@ -87,7 +91,11 @@ static void sfwrite_open(t_sfwrite *x,t_symbol *filename) | |||
87 | 91 | ||
88 | sfwrite_close(x); | 92 | sfwrite_close(x); |
89 | 93 | ||
94 | #ifdef ROCKBOX | ||
95 | if ((x->x_file = open(fname, O_RDWR | O_CREAT)) < 0) | ||
96 | #else | ||
90 | if ((x->x_file = open(fname,O_RDWR | O_CREAT,0664)) < 0) | 97 | if ((x->x_file = open(fname,O_RDWR | O_CREAT,0664)) < 0) |
98 | #endif | ||
91 | { | 99 | { |
92 | error("can't create %s",fname); | 100 | error("can't create %s",fname); |
93 | return; | 101 | return; |