Browse Source

move bits/unistd_32.h to bits/asm on all targets

Only Vhex had it at the correct place previously.
master
Lephenixnoir 9 months ago
parent
commit
6275b3e73b
Signed by: Lephenixnoir GPG Key ID: 1BBA026E13FC0495
  1. 4
      CMakeLists.txt
  2. 0
      include/target/casiowin-cg/bits/asm/unistd_32.h
  3. 0
      include/target/casiowin-fx/bits/asm/unistd_32.h
  4. 2
      src/posix/unistd/target/casiowin-fx/close.S

4
CMakeLists.txt

@ -17,10 +17,12 @@ if(FXLIBC_TARGET STREQUAL vhex-sh)
add_definitions(-D__SUPPORT_VHEX_KERNEL)
endif()
if(FXLIB_TARGET STREQUAL vhex-x86)
if(FXLIBC_TARGET STREQUAL vhex-x86)
list(APPEND TARGET_FOLDERS vhex-generic x86-generic)
set(FXLIBC_ARCH x86)
add_definitions(-D__SUPPORT_VHEX_KERNEL)
# TODO: Maybe add -nostdinc (but that removes compiler-provided headers like
# <stddef.h>), or use another compiler than the system one?
endif()
if(FXLIBC_TARGET STREQUAL casiowin-fx)

0
include/target/casiowin-cg/bits/unistd_32.h → include/target/casiowin-cg/bits/asm/unistd_32.h

0
include/target/casiowin-fx/bits/unistd_32.h → include/target/casiowin-fx/bits/asm/unistd_32.h

2
src/posix/unistd/target/casiowin-fx/close.S

@ -1,4 +1,4 @@
#include <bits/unistd_32.h>
#include <bits/asm/unistd_32.h>
#include <bits/trapa.h>
.text
.global _close

Loading…
Cancel
Save