summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--arch/nt32/bits/alltypes.sed2
-rw-r--r--arch/nt64/bits/alltypes.sed2
-rw-r--r--project/headers.mk4
3 files changed, 7 insertions, 1 deletions
diff --git a/arch/nt32/bits/alltypes.sed b/arch/nt32/bits/alltypes.sed
new file mode 100644
index 0000000..e970c09
--- /dev/null
+++ b/arch/nt32/bits/alltypes.sed
@@ -0,0 +1,2 @@
+/^TYPEDEF/s/TYPEDEF unsigned uid_t;/TYPEDEF unsigned _Int64 uid_t;/
+/^TYPEDEF/s/TYPEDEF unsigned gid_t;/TYPEDEF unsigned _Int64 gid_t;/
diff --git a/arch/nt64/bits/alltypes.sed b/arch/nt64/bits/alltypes.sed
new file mode 100644
index 0000000..e970c09
--- /dev/null
+++ b/arch/nt64/bits/alltypes.sed
@@ -0,0 +1,2 @@
+/^TYPEDEF/s/TYPEDEF unsigned uid_t;/TYPEDEF unsigned _Int64 uid_t;/
+/^TYPEDEF/s/TYPEDEF unsigned gid_t;/TYPEDEF unsigned _Int64 gid_t;/
diff --git a/project/headers.mk b/project/headers.mk
index 614d9c5..996a846 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -14,12 +14,14 @@ ARCH_GEN_H = $(ALLTYPES_H) $(SYSCALL_H)
ALLTYPES_DEPS = \
$(PORT_DIR)/arch/$(ARCH)/bits/alltypes.h.in \
+ $(PORT_DIR)/arch/$(ARCH)/bits/alltypes.sed \
$(SOURCE_DIR)/include/alltypes.h.in \
$(SOURCE_DIR)/tools/mkalltypes.sed \
| build/include/bits/
$(ALLTYPES_H): $(ALLTYPES_DEPS)
- sed -f $(SOURCE_DIR)/tools/mkalltypes.sed \
+ sed -f $(PORT_DIR)/arch/$(ARCH)/bits/alltypes.sed \
+ -f $(SOURCE_DIR)/tools/mkalltypes.sed \
$(PORT_DIR)/arch/$(ARCH)/bits/alltypes.h.in \
$(SOURCE_DIR)/include/alltypes.h.in > $@