Skip to content

Commit

Permalink
xbox: Remove the sys/*.h workarounds
Browse files Browse the repository at this point in the history
No longer needed after the libmpq fixes
  • Loading branch information
glebm committed Jul 1, 2022
1 parent 5ef6a2a commit f2da1d0
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/xbox_nxdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,6 @@ jobs:
shell: bash
run: PATH="${NXDK_DIR}/bin:$PATH" make -j $(nproc) -C "$NXDK_DIR" NXDK_ONLY=1

- name: Work around https://github.com/XboxDev/nxdk/issues/467
run: >
mkdir -p "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys" &&
echo "#pragma once // Generated" > "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/types.h" &&
echo "typedef long off_t;" >> "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/types.h"
- name: Work around https://github.com/XboxDev/nxdk/issues/464
run: >
mkdir -p "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys" &&
echo "#pragma once // Generated" > "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/stat.h" &&
echo "#include <stddef.h>" >> "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/stat.h" &&
echo "struct _stat { size_t st_size; int st_mode; int st_mtime; int st_atime; int st_nlink; };" >> "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/stat.h" &&
echo "struct _stati64 { size_t st_size; int st_mode; int st_mtime; int st_atime; int st_nlink; };" >> "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/stat.h" &&
echo "static int _stati64(const char* x, ...) { return 0; };" >> "${NXDK_DIR}/lib/xboxrt/libc_extensions/sys/stat.h"
- name: Checkout
uses: actions/checkout@v3
with:
Expand Down

0 comments on commit f2da1d0

Please sign in to comment.