Few more GCC 4.7 fixes.
include unistd when not on windows.
This commit is contained in:
@@ -35,6 +35,8 @@
|
||||
|
||||
#if LL_WINDOWS
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include "linden_common.h"
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#if LL_DARWIN || LL_LINUX
|
||||
// not required or present on Win32
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
LLProcessLauncher::LLProcessLauncher()
|
||||
|
||||
@@ -55,11 +55,11 @@ void pump_debug(const char *file, S32 line);
|
||||
/**
|
||||
* intrusive pointer support
|
||||
*/
|
||||
namespace boost
|
||||
{
|
||||
//namespace boost
|
||||
//{
|
||||
void intrusive_ptr_add_ref(LLIOPipe* p);
|
||||
void intrusive_ptr_release(LLIOPipe* p);
|
||||
};
|
||||
//};
|
||||
|
||||
/**
|
||||
* @class LLIOPipe
|
||||
|
||||
@@ -77,8 +77,8 @@ void LLCurl::Responder::result(LLSD const&)
|
||||
{
|
||||
}
|
||||
|
||||
namespace boost
|
||||
{
|
||||
//namespace boost
|
||||
//{
|
||||
void intrusive_ptr_add_ref(LLCurl::Responder* p)
|
||||
{
|
||||
++p->mReferenceCount;
|
||||
@@ -91,5 +91,5 @@ namespace boost
|
||||
delete p;
|
||||
}
|
||||
}
|
||||
};
|
||||
//};
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ static bool isProcessAlive(U32 pid)
|
||||
}
|
||||
|
||||
#else //Everyone Else
|
||||
#include <unistd.h>
|
||||
|
||||
static U32 getPID() {
|
||||
return getpid();
|
||||
|
||||
@@ -40,6 +40,9 @@
|
||||
|
||||
#include "volume_catcher.h"
|
||||
|
||||
#ifndef LL_WINDOWS
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
#include <glib.h>
|
||||
|
||||
Reference in New Issue
Block a user