summaryrefslogtreecommitdiffstats
path: root/mbbsd/mbbsd.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-24 05:02:41 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-02-24 05:02:41 +0800
commitc8ca89f87d8fbd2e642a2787acb9bf02614ffe04 (patch)
treee77117feab4f369e738c53fbd05d4649564238bb /mbbsd/mbbsd.c
parentf30ceeae171f34b4565eecf8fdcf674aee2edb54 (diff)
downloadpttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.gz
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.bz2
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.lz
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.xz
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.tar.zst
pttbbs-c8ca89f87d8fbd2e642a2787acb9bf02614ffe04.zip
add dietlibc support, reduced 16kb memory usage on linux x86_64.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2534 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mbbsd.c')
-rw-r--r--mbbsd/mbbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 6f7125d3..7b78e82e 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -1305,7 +1305,7 @@ main(int argc, char *argv[], char *envp[])
Signal(SIGUSR1, SIG_IGN);
Signal(SIGUSR2, SIG_IGN);
-#if defined(__linux__) && defined(CRITICAL_MEMORY)
+#if defined(__GLIBC__) && defined(CRITICAL_MEMORY)
#define MY__MMAP_THRESHOLD (1024 * 8)
#define MY__MMAP_MAX (0)
#define MY__TRIM_THRESHOLD (1024 * 8)