Compile error with android ndk
------------------------------
Key: THRIFT-1572
URL: https://issues.apache.org/jira/browse/THRIFT-1572
Project: Thrift
Issue Type: Bug
Components: C++ - Library
Affects Versions: 0.8
Environment: Android ndk
Reporter: Denis
When compiling error:
"Compile++ thumb : thrift <= TSocketPool.cpp
In file included from jni/../../src/transport/TSocketPool.h:24,
from jni/../../src/transport/TSocketPool.cpp:26:
jni/../../src/transport/TSocket.h:216: error: expected ';' before '(' token
jni/../../src/transport/TSocket.h:237: error: 'socklen_t' has not been declared
This patch fixes a bug:
Index: E:/Temp/thrift/lib/cpp/src/thrift/transport/TSocketPool.cpp
===================================================================
--- E:/Temp/thrift/lib/cpp/src/thrift/transport/TSocketPool.cpp (revision
1325712)
+++ E:/Temp/thrift/lib/cpp/src/thrift/transport/TSocketPool.cpp (working copy)
@@ -16,7 +16,10 @@
* specific language governing permissions and limitations
* under the License.
*/
-
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <algorithm>
#include <iostream>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira