#include <openssl/ssl.h>
#include <openssl/err.h>
-#ifdef HAVE_GCC_ABI_DEMANGLE
+#if HAVE_GCC_ABI_DEMANGLE
# include <cxxabi.h>
#endif /* HAVE_GCC_ABI_DEMANGLE */
{
int fds[2];
-#ifdef HAVE_PIPE2
+#if HAVE_PIPE2
if (pipe2(fds, O_CLOEXEC) < 0)
BOOST_THROW_EXCEPTION(PosixException("pipe2() failed.", errno));
#else /* HAVE_PIPE2 */
int fds[2];
-#ifdef HAVE_PIPE2
+#if HAVE_PIPE2
if (pipe2(fds, O_NONBLOCK | O_CLOEXEC) < 0)
BOOST_THROW_EXCEPTION(PosixException("pipe2() failed.", errno));
#else /* HAVE_PIPE2 */
m_ExtraEnvironment.reset();
-#ifdef HAVE_VFORK
+#if HAVE_WORKING_VFORK
m_Pid = vfork();
-#else /* HAVE_VFORK */
+#else /* HAVE_WORKING_VFORK */
m_Pid = fork();
-#endif /* HAVE_VFORK */
+#endif /* HAVE_WORKING_VFORK */
if (m_Pid < 0)
BOOST_THROW_EXCEPTION(PosixException("fork() failed.", errno));
#include "i2-base.h"
#include <mmatch.h>
-#ifdef HAVE_BACKTRACE_SYMBOLS
+#if HAVE_BACKTRACE_SYMBOLS
# include <execinfo.h>
#endif /* HAVE_BACKTRACE_SYMBOLS */
{
String result = sym;
-#ifdef HAVE_GCC_ABI_DEMANGLE
+#if HAVE_GCC_ABI_DEMANGLE
int status;
char *realname = abi::__cxa_demangle(sym.CStr(), 0, 0, &status);
*/
bool Utility::PrintStacktrace(ostream& fp, int ignoreFrames)
{
-#ifdef HAVE_BACKTRACE_SYMBOLS
+#if HAVE_BACKTRACE_SYMBOLS
void *frames[50];
int framecount = backtrace(frames, sizeof(frames) / sizeof(frames[0]));