cctools-port/tools/fix_unistd_issue.sh
Thomas Pöchtrager e837833872 attempt to build libcxx from source if it is not installed on the system
remove unneeded ld/Makefile
ld64 *should* now also build without llvm-devel (but disables LTO then)
2013-12-08 20:41:22 +01:00

6 lines
262 B
Bash
Executable File

#!/usr/bin/env bash
find . -type f \( -name "*.c" -o -name "*.cpp" -o -name "*.cc" -o -name "*.h" -o -name "*.hpp" \) -print0 | \
xargs -0 sed -i "s/#include <unistd.h>/#undef __block\n#include <unistd.h>\n#define __block __attribute__((__blocks__(byref)))/g"