From e9e8eb8f240ace9f334d4dac96dc3ebe68a07989 Mon Sep 17 00:00:00 2001 From: midipix Date: Jun 13 2019 09:40:47 +0000 Subject: midipix targets: uid_t & gid_t --> uint64_t, matching updated def. in psxscl. --- 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 > $@