summaryrefslogtreecommitdiff
path: root/os/src/romfs.c
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2011-02-05 04:35:27 +0100
commit61ba39a23786a7ae9694705af1d146c00a319144 (patch)
treef9ad51bee751f7e878ac3e7ad4d45f993605c37d /os/src/romfs.c
parente2d292afdb43cd7d9391128563384e1edd53c52e (diff)
Getting rid of newlib, starting to implement a libc. Highly experimental, highly untested.
Diffstat (limited to 'os/src/romfs.c')
-rw-r--r--os/src/romfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/os/src/romfs.c b/os/src/romfs.c
index 2d11d96..df55f48 100644
--- a/os/src/romfs.c
+++ b/os/src/romfs.c
@@ -2,9 +2,11 @@
#include <FreeRTOS.h>
#include <semphr.h>
#include <unistd.h>
+#ifdef USE_NEWLIB
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#endif
#include "fio.h"
#include "filesystem.h"
#include "romfs.h"