aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/bam.lua16
-rw-r--r--src/common/include/proto/fs.h6
2 files changed, 13 insertions, 9 deletions
diff --git a/src/common/bam.lua b/src/common/bam.lua
index 6d4a29c..77b98c5 100644
--- a/src/common/bam.lua
+++ b/src/common/bam.lua
@@ -1,7 +1,11 @@
-local function lib(name)
- local source = Collect('src/common/' .. name .. '/*.c')
- return Compile(common_settings, source)
-end
+return function(s)
+ local function lib(name)
+ local source = Collect('src/common/' .. name .. '/*.c')
+ return Compile(s.common_settings, source)
+ end
-common_libc = lib('libc')
-common_libkogata = lib('libkogata')
+ return {
+ libc = lib('libc'),
+ libkogata = lib('libkogata')
+ }
+end
diff --git a/src/common/include/proto/fs.h b/src/common/include/proto/fs.h
index e70ff55..49091eb 100644
--- a/src/common/include/proto/fs.h
+++ b/src/common/include/proto/fs.h
@@ -50,9 +50,9 @@ typedef struct {
#define IOCTL_BLOCKDEV_GET_BLOCK_COUNT 41
-#define SEL_READ 0x01
-#define SEL_WRITE 0x02
-#define SEL_ERROR 0x04
+#define SEL_READ (0x01)
+#define SEL_WRITE (0x02)
+#define SEL_ERROR (0x04)
typedef struct {
fd_t fd;