Added unistd.h and some linux syscall wrappers
This commit is contained in:
@@ -10,8 +10,10 @@ mkdir -p $build_dir/sysroot/usr/include/{sys,machine}
|
||||
|
||||
cp $source_dir/photon/libc/include/*.h $build_dir/sysroot/usr/include
|
||||
|
||||
platform_headers=$(find $source_dir/photon/libc/sys/$platform -type f \( -iname "*.h" ! -iname "__*" \))
|
||||
cp -t $build_dir/sysroot/usr/include/sys $platform_headers
|
||||
platform_headers=$(find $source_dir/photon/libc/sys/$platform -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \))
|
||||
platform_sys_headers=$(find $source_dir/photon/libc/sys/$platform/sys -maxdepth 1 -type f \( -iname "*.h" ! -iname "__*" \))
|
||||
cp -t $build_dir/sysroot/usr/include $platform_headers
|
||||
cp -t $build_dir/sysroot/usr/include/sys $platform_sys_headers
|
||||
|
||||
machine_arch_headers=$(find $source_dir/photon/libc/machine/$machine/ \
|
||||
-type f \( -iname "*.h" ! -iname "__*" \))
|
||||
|
||||
Reference in New Issue
Block a user