Ticket #1739: legacy-gcc-haiku-compile-fix.diff
File legacy-gcc-haiku-compile-fix.diff, 1.5 KB (added by , 16 years ago) |
---|
-
gcc/gthr-beos.h
41 41 #undef MIN 42 42 #endif 43 43 44 /* When cross-compiling a native compiler on a linux build machine, 45 gcc uses its own limits.h, which does not define NAME_MAX. Do it here */ 46 47 #ifndef NAME_MAX 48 #define NAME_MAX (256) 49 #endif 50 44 51 #include <OS.h> 45 52 46 53 typedef int32 __gthread_mutex_t; -
gcc/protoize.c
62 62 #undef abort 63 63 64 64 #if ! defined (_WIN32) || defined (__CYGWIN__) || defined (_UWIN) 65 #if defined(POSIX) || defined(CONCURRENT) 65 #if defined(POSIX) || defined(CONCURRENT) || defined(__BEOS__) 66 66 #include <dirent.h> 67 67 #else 68 68 #include <sys/dir.h> -
gcc/fixinc/mkfixinc.sh
44 44 i?86-*-moss* | \ 45 45 i?86-*-pe | \ 46 46 i?86-*-cygwin* | \ 47 i?86-pc-beos | \ 47 48 i?86-*-mingw32* | \ 48 49 i?86-*-uwin* | \ 49 50 i?86-*-interix* | \ … … 72 73 # OK. We gotta make the thing. 73 74 # make and install either the binary or the default script 74 75 75 defs="SHELL=\"$SHELL\" CC=\"$CC \" CFLAGS=\"$CFLAGS\" LDFLAGS=\"$LDFLAGS\""76 defs="SHELL=\"$SHELL\" CC=\"$CC_FOR_BUILD\" CFLAGS=\"$CFLAGS_FOR_BUILD\" LDFLAGS=\"$LDFLAGS\"" 76 77 cmd="$MAKE ${defs} install-bin" 77 78 echo $cmd 78 79 eval $cmd