mirror of
https://github.com/transmission/transmission
synced 2025-03-13 07:33:02 +00:00
#5304 daemon fails to build on mac
This commit is contained in:
parent
632edad03d
commit
4ecbb29137
4 changed files with 16 additions and 5 deletions
|
@ -3274,7 +3274,11 @@
|
|||
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = YES;
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = MACOSX;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
MACOSX,
|
||||
BUILD_MAC_CLIENT,
|
||||
XCODE_BUILD,
|
||||
);
|
||||
GCC_UNROLL_LOOPS = YES;
|
||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
||||
|
@ -3395,6 +3399,8 @@
|
|||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
MACOSX,
|
||||
NS_BLOCK_ASSERTIONS,
|
||||
BUILD_MAC_CLIENT,
|
||||
XCODE_BUILD,
|
||||
);
|
||||
GCC_UNROLL_LOOPS = YES;
|
||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||
|
@ -3451,7 +3457,11 @@
|
|||
GCC_GENERATE_DEBUGGING_SYMBOLS = YES;
|
||||
GCC_INCREASE_PRECOMPILED_HEADER_SHARING = YES;
|
||||
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = MACOSX;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
MACOSX,
|
||||
BUILD_MAC_CLIENT,
|
||||
XCODE_BUILD,
|
||||
);
|
||||
GCC_UNROLL_LOOPS = YES;
|
||||
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
|
||||
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES;
|
||||
|
|
|
@ -474,6 +474,7 @@ AM_CONDITIONAL([BUILD_DAEMON],[test "x$build_daemon" = "xyes"])
|
|||
|
||||
|
||||
if test "x$build_mac" = "xyes" ; then
|
||||
AC_DEFINE([BUILD_MAC_CLIENT], 1)
|
||||
# Make sure the proper Mac SDK is installed
|
||||
if test ! -d /Developer/SDKs/MacOSX10.5.sdk; then
|
||||
cat << EOF
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <windows.h>
|
||||
#include <shlobj.h> /* for CSIDL_APPDATA, CSIDL_MYDOCUMENTS */
|
||||
#else
|
||||
#ifdef SYS_DARWIN
|
||||
#ifdef BUILD_MAC_CLIENT
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#endif
|
||||
#ifdef __HAIKU__
|
||||
|
@ -429,7 +429,7 @@ tr_getWebClientDir (const tr_session * session UNUSED)
|
|||
else
|
||||
{
|
||||
|
||||
#ifdef SYS_DARWIN /* on Mac, look in the Application Support folder first, then in the app bundle. */
|
||||
#ifdef BUILD_MAC_CLIENT /* on Mac, look in the Application Support folder first, then in the app bundle. */
|
||||
|
||||
/* Look in the Application Support folder */
|
||||
s = tr_buildPath (tr_sessionGetConfigDir (session), "web", NULL);
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#define _GNU_SOURCE /* glibc's string.h needs this to pick up memmem */
|
||||
#endif
|
||||
|
||||
#if defined (SYS_DARWIN)
|
||||
#if defined (XCODE_BUILD)
|
||||
#define HAVE_GETPAGESIZE
|
||||
#define HAVE_ICONV_OPEN
|
||||
#define HAVE_MKDTEMP
|
||||
|
|
Loading…
Add table
Reference in a new issue