From 95e28708bc5429ed9cb4999e08938f1d49bd32f0 Mon Sep 17 00:00:00 2001
From: Daniel Gibbs <me@danielgibbs.co.uk>
Date: Sat, 2 Jan 2016 00:25:58 +0000
Subject: [PATCH] Added Gibc fix for DST

---
 functions/fix_glibc.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/functions/fix_glibc.sh b/functions/fix_glibc.sh
index a19daeab0..c61dc5a66 100644
--- a/functions/fix_glibc.sh
+++ b/functions/fix_glibc.sh
@@ -2,7 +2,7 @@
 # LGSM fix_glibc.sh function
 # Author: Daniel Gibbs
 # Website: http://gameservermanagers.com
-lgsm_version="271215"
+lgsm_version="020116"
 
 fn_glibcfixmsg(){
 echo ""
@@ -54,6 +54,14 @@ elif [ "$(ldd --version | sed -n '1 p' | tr -cd '[:digit:]' | tail -c 3)" -lt 21
 		glibcversion="2.15"
 		fn_glibcfixmsg
 		cp -v "${rootdir}/steamcmd/linux32/libstdc++.so.6" "${filesdir}/libstdc++.so.6"
+	# Dont Starve Together
+	elif [ "${gamename}" == "Dont Starve Together" ]; then
+		glibcversion="2.15"
+		fn_glibcfixmsg
+		cd "${filesdir}/bin/lib32/"
+		wget -nv -N https://github.com/dgibbs64/linuxgsm/raw/master/DontStarveTogether/dependencies/libc.so.6
+		wget -nv -N https://github.com/dgibbs64/linuxgsm/raw/master/DontStarveTogether/dependencies/libpthread.so.0
+		wget -nv -N https://github.com/dgibbs64/linuxgsm/raw/master/DontStarveTogether/dependencies/librt.so.1
 	# Double Action: Boogaloo
 	elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
 		glibcversion="2.15"