if (!foreground)
{
-#if defined (HAVE_DAEMON) && !defined (__UCLIBC__)
+#if defined (HAVE_DAEMON) && !defined (__APPLE__) && !defined (__UCLIBC__)
if (daemon (true, false) == -1)
{
* $Id$
*/
+#ifdef __APPLE__
+ /* OpenSSL "deprecated" as of OS X 10.7, but we still use it */
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
+
#include <assert.h>
#include <openssl/bn.h>
errno = code;
}
+#ifdef HAVE_FALLOCATE64
out:
+#endif
if (!ret)
set_system_error (error, errno);
#include "variant-common.h"
#include "libtransmission-test.h"
-static inline tr_quark
-toQuark (const char * str)
-{
- return tr_quark_new (str, strlen(str));
-}
-
static int
test_elements (void)
{
managerUnlock (swarm->manager);
}
+#ifndef NDEBUG
+
static inline int
swarmIsLocked (const tr_swarm * swarm)
{
return tr_sessionIsLocked (swarm->manager->session);
}
+#endif /* NDEBUG */
+
/**
***
**/
for (i = 0; env[i] != NULL; ++i)
putenv (env[i]);
- chdir ("/");
+ (void) chdir ("/");
if (execvp (script, cmd) == -1)
tr_logAddTorErr (tor, "error executing script \"%s\": %s", script, tr_strerror (errno));