diff options
author | Aleric Inglewood | 2010-11-07 16:55:50 +0100 |
---|---|---|
committer | Aleric Inglewood | 2010-11-07 18:27:48 +0100 |
commit | 5b4356cefbaa7dbdc8656e7283c110a893b1a89c (patch) | |
tree | 43fae9945562c3281746370d623877840ed884b2 /linden/indra/llvfs | |
parent | IMP-688: ERROR: getString: Invalid string control nick01 (diff) | |
download | meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.zip meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.tar.gz meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.tar.bz2 meta-impy-5b4356cefbaa7dbdc8656e7283c110a893b1a89c.tar.xz |
IMP-692: SNOW-713: Global objects in libllcommon duplicated in plugins
See http://jira.secondlife.com/browse/SNOW-713
This patch makes llcommon shared. It contains the following snowglobe
(SVN) changesets: 3478, 3479, 3480, 3481, 3482, 3485, 3496, 3498, 3500,
3519 and 3531, plus the fix for all rejects. Note that changes
to scripts/automated_build_scripts/opensrc-build.sh (changesets 3500
and 3625) were ignored as we don't have scripts/automated_build_scripts.
Diffstat (limited to 'linden/indra/llvfs')
-rw-r--r-- | linden/indra/llvfs/lldir.cpp | 1 | ||||
-rwxr-xr-x | linden/indra/llvfs/llpidlock.cpp | 3 | ||||
-rwxr-xr-x | linden/indra/llvfs/llpidlock.h | 2 | ||||
-rw-r--r-- | linden/indra/llvfs/llvfile.cpp | 1 | ||||
-rw-r--r-- | linden/indra/llvfs/llvfs.cpp | 1 |
5 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/llvfs/lldir.cpp b/linden/indra/llvfs/lldir.cpp index b8a4794..0c93cbb 100644 --- a/linden/indra/llvfs/lldir.cpp +++ b/linden/indra/llvfs/lldir.cpp | |||
@@ -43,6 +43,7 @@ | |||
43 | #include "lldir.h" | 43 | #include "lldir.h" |
44 | #include "llerror.h" | 44 | #include "llerror.h" |
45 | #include "lluuid.h" | 45 | #include "lluuid.h" |
46 | #include "lltimer.h" | ||
46 | 47 | ||
47 | #if LL_WINDOWS | 48 | #if LL_WINDOWS |
48 | #include "lldir_win32.h" | 49 | #include "lldir_win32.h" |
diff --git a/linden/indra/llvfs/llpidlock.cpp b/linden/indra/llvfs/llpidlock.cpp index 93ac120..cb64428 100755 --- a/linden/indra/llvfs/llpidlock.cpp +++ b/linden/indra/llvfs/llpidlock.cpp | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "llsdserialize.h" | 39 | #include "llsdserialize.h" |
40 | #include "llnametable.h" | 40 | #include "llnametable.h" |
41 | #include "llframetimer.h" | 41 | #include "llframetimer.h" |
42 | #include "llapp.h" | ||
42 | 43 | ||
43 | #if LL_WINDOWS //For windows platform. | 44 | #if LL_WINDOWS //For windows platform. |
44 | bool isProcessAlive(U32 pid) | 45 | bool isProcessAlive(U32 pid) |
@@ -60,7 +61,7 @@ class LLPidLockFile | |||
60 | public: | 61 | public: |
61 | LLPidLockFile( ) : | 62 | LLPidLockFile( ) : |
62 | mSaving(FALSE), mWaiting(FALSE), | 63 | mSaving(FALSE), mWaiting(FALSE), |
63 | mClean(TRUE), mPID(getpid()) | 64 | mClean(TRUE), mPID(LLApp::getPid()) |
64 | { | 65 | { |
65 | mLockName = gDirUtilp->getTempDir() + "/savelock"; | 66 | mLockName = gDirUtilp->getTempDir() + "/savelock"; |
66 | } | 67 | } |
diff --git a/linden/indra/llvfs/llpidlock.h b/linden/indra/llvfs/llpidlock.h index 42aee4d..efcfd91 100755 --- a/linden/indra/llvfs/llpidlock.h +++ b/linden/indra/llvfs/llpidlock.h | |||
@@ -41,8 +41,6 @@ class LLFrameTimer; | |||
41 | 41 | ||
42 | #include <windows.h> | 42 | #include <windows.h> |
43 | 43 | ||
44 | #define getpid GetCurrentProcessId | ||
45 | |||
46 | #else //Everyone Else | 44 | #else //Everyone Else |
47 | 45 | ||
48 | #include <signal.h> | 46 | #include <signal.h> |
diff --git a/linden/indra/llvfs/llvfile.cpp b/linden/indra/llvfs/llvfile.cpp index 6b1563b..630975a 100644 --- a/linden/indra/llvfs/llvfile.cpp +++ b/linden/indra/llvfs/llvfile.cpp | |||
@@ -38,6 +38,7 @@ | |||
38 | #include "llthread.h" | 38 | #include "llthread.h" |
39 | #include "llstat.h" | 39 | #include "llstat.h" |
40 | #include "llvfs.h" | 40 | #include "llvfs.h" |
41 | #include "llfasttimer.h" | ||
41 | 42 | ||
42 | const S32 LLVFile::READ = 0x00000001; | 43 | const S32 LLVFile::READ = 0x00000001; |
43 | const S32 LLVFile::WRITE = 0x00000002; | 44 | const S32 LLVFile::WRITE = 0x00000002; |
diff --git a/linden/indra/llvfs/llvfs.cpp b/linden/indra/llvfs/llvfs.cpp index 9bf5b59..dea8c9c 100644 --- a/linden/indra/llvfs/llvfs.cpp +++ b/linden/indra/llvfs/llvfs.cpp | |||
@@ -47,6 +47,7 @@ | |||
47 | 47 | ||
48 | #include "llvfs.h" | 48 | #include "llvfs.h" |
49 | #include "llstl.h" | 49 | #include "llstl.h" |
50 | #include "lltimer.h" | ||
50 | 51 | ||
51 | const S32 FILE_BLOCK_MASK = 0x000003FF; // 1024-byte blocks | 52 | const S32 FILE_BLOCK_MASK = 0x000003FF; // 1024-byte blocks |
52 | const S32 VFS_CLEANUP_SIZE = 5242880; // how much space we free up in a single stroke | 53 | const S32 VFS_CLEANUP_SIZE = 5242880; // how much space we free up in a single stroke |