diff --git a/indra/newview/llwebprofile.cpp b/indra/newview/llwebprofile.cpp
index 141c746e0..31751fddf 100644
--- a/indra/newview/llwebprofile.cpp
+++ b/indra/newview/llwebprofile.cpp
@@ -38,11 +38,12 @@
#include "llpanelprofile.h" // getProfileURL (this is the original location LL put it).
#include "llviewermedia.h" // FIXME: don't use LLViewerMedia internals
-// third-party
-#ifdef LL_STANDALONE
-#include // JSONCPP
+// third-party JSONCPP
+#if !defined(LL_STANDALONE) && defined(LINUX64)
+// The prebuilt linux64 package is packaged wrongly.
+#include // JSONCPP
#else
-#include "reader.h" // prebuilt jsoncpp is wrongly packaged.
+#include // JSONCPP
#endif
/*