summaryrefslogtreecommitdiff
path: root/indra/llcommon/llsys.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2024-06-06 09:34:28 +0800
committerErik Kundiman <erik@megapahit.org>2024-06-06 09:34:28 +0800
commitf3eb7559d62fbbee940ac89f34519cc39ea6c91d (patch)
treead1623f571058a4e0a1c16a213739768c405c568 /indra/llcommon/llsys.cpp
parent3f12069fb1df21781ad97b719cc6dbe86ea11b89 (diff)
Change LL_FREEBSD to already existing __FreeBSD__
So we don't need to have a custom environment -DLL_FREEBSD=1 setting.
Diffstat (limited to 'indra/llcommon/llsys.cpp')
-rw-r--r--indra/llcommon/llsys.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llcommon/llsys.cpp b/indra/llcommon/llsys.cpp
index 1fc05dfdcd..459fe0c0c8 100644
--- a/indra/llcommon/llsys.cpp
+++ b/indra/llcommon/llsys.cpp
@@ -84,7 +84,7 @@ const char MEMINFO_FILE[] = "/proc/meminfo";
#ifdef __GNU__
# include <gnu/libc-version.h>
#endif
-#elif LL_FREEBSD
+#elif __FreeBSD__
# include <sys/sysctl.h>
# include <sys/utsname.h>
#endif
@@ -786,7 +786,7 @@ static U32Kilobytes LLMemoryAdjustKBResult(U32Kilobytes inKB)
}
#endif
-#if LL_DARWIN || LL_FREEBSD
+#if LL_DARWIN || __FreeBSD__
// static
U32Kilobytes LLMemoryInfo::getHardwareMemSize()
{
@@ -810,7 +810,7 @@ U32Kilobytes LLMemoryInfo::getPhysicalMemoryKB() const
#if LL_WINDOWS
return LLMemoryAdjustKBResult(U32Kilobytes(mStatsMap["Total Physical KB"].asInteger()));
-#elif LL_DARWIN || LL_FREEBSD
+#elif LL_DARWIN || __FreeBSD__
return getHardwareMemSize();
#elif LL_LINUX