aboutsummaryrefslogtreecommitdiff
path: root/ports/pic16bit/unistd.h
diff options
context:
space:
mode:
authorDamien George2017-09-06 13:40:51 +1000
committerDamien George2017-09-06 13:40:51 +1000
commit01dd7804b87d60b2deab16712eccb3b97351a9b7 (patch)
tree1aa21f38a872b8e62a3d4e4f74f68033c6f827e4 /ports/pic16bit/unistd.h
parenta9862b30068fc9df1022f08019fb35aaa5085f64 (diff)
ports: Make new ports/ sub-directory and move all ports there.
This is to keep the top-level directory clean, to make it clear what is core and what is a port, and to allow the repository to grow with new ports in a sustainable way.
Diffstat (limited to 'ports/pic16bit/unistd.h')
-rw-r--r--ports/pic16bit/unistd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ports/pic16bit/unistd.h b/ports/pic16bit/unistd.h
new file mode 100644
index 000000000..23c5e54c7
--- /dev/null
+++ b/ports/pic16bit/unistd.h
@@ -0,0 +1,11 @@
+#ifndef MICROPY_INCLUDED_PIC16BIT_UNISTD_H
+#define MICROPY_INCLUDED_PIC16BIT_UNISTD_H
+
+// XC16 compiler doesn't seem to have unistd.h file
+
+#define SEEK_SET 0
+#define SEEK_CUR 1
+
+typedef int ssize_t;
+
+#endif // MICROPY_INCLUDED_PIC16BIT_UNISTD_H