AC_CHECK_HEADERS([stdlib.h])
AC_CHECK_HEADERS([sys/socket.h])
AC_CHECK_HEADERS([sys/time.h])
+AC_CHECK_HEADERS([sys/un.h])
+AC_CHECK_HEADERS([sys/poll.h])
+AC_CHECK_HEADERS([sys/resource.h])
AC_CHECK_HEADERS([unistd.h])
AC_CHECK_HEADERS([libintl.h])
AC_CHECK_HEADERS([malloc.h])
#include <assert.h>
#include <sys/types.h>
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include "Mutex.h"
#include "Util.h"
#include <assert.h>
+#ifdef HAVE_PTHREAD_H
#include <pthread.h>
+#endif
#include <signal.h>
using boost::shared_ptr;
* under the License.
*/
-#include "Util.h"
-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
+#include "Util.h"
+
#if defined(HAVE_CLOCK_GETTIME)
#include <time.h>
-#elif defined(HAVE_GETTIMEOFDAY)
+#elif defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
#endif // defined(HAVE_CLOCK_GETTIME)
#include <stddef.h>
#include <stdint.h>
#include <time.h>
+
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
namespace apache { namespace thrift { namespace concurrency {
#include <boost/shared_ptr.hpp>
#include <boost/static_assert.hpp>
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
+#endif
#include <sys/types.h>
#include <string>
#include <map>
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "TNonblockingServer.h"
#include <concurrency/Exception.h>
#include <transport/TSocket.h>
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/tcp.h>
+#endif
+
+#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#include <netdb.h>
#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
+
#include <errno.h>
#include <assert.h>
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
+#ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
+#endif
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
namespace apache { namespace thrift { namespace server {
#define _THRIFT_TRANSPORT_TFDTRANSPORT_H_ 1
#include <string>
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#include "TTransport.h"
#include "TVirtualTransport.h"
#include "TFileTransport.h"
#include "TTransportUtils.h"
+#ifdef HAVE_PTHREAD_H
#include <pthread.h>
+#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#else
#endif
#include <fcntl.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include <cstdlib>
#include <cstring>
#include <iostream>
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
namespace apache { namespace thrift { namespace transport {
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <errno.h>
#include <string>
+#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
+#endif
#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
#include <boost/lexical_cast.hpp>
#include <boost/shared_array.hpp>
#include <openssl/err.h>
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <cstring>
#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
+#endif
+#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
-#include <sys/types.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/tcp.h>
+#endif
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif
#include <fcntl.h>
#include <errno.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include "TSocket.h"
#include "TServerSocket.h"
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include "TSimpleFileTransport.h"
#include <sys/types.h>
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#include <fcntl.h>
namespace apache { namespace thrift { namespace transport {
* under the License.
*/
+#ifdef HAVE_CONFIG_H
#include <config.h>
+#endif
#include <cstring>
#include <sstream>
+#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
+#endif
+#ifdef HAVE_SYS_UN_H
#include <sys/un.h>
+#endif
+#ifdef HAVE_SYS_POLL_H
#include <sys/poll.h>
+#endif
#include <sys/types.h>
+#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/tcp.h>
+#endif
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <errno.h>
#include <fcntl.h>
#define _THRIFT_TRANSPORT_TSOCKET_H_ 1
#include <string>
+
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
+#ifdef HAVE_NETDB_H
#include <netdb.h>
+#endif
#include "TTransport.h"
#include "TVirtualTransport.h"
* under the License.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <iostream>
#include <cmath>
#include "transport/TBufferTransports.h"
#include "protocol/TBinaryProtocol.h"
#include "gen-cpp/DebugProtoTest_types.h"
#include <time.h>
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
class Timer {
public:
#define _GNU_SOURCE // needed for getopt_long
#endif
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
#include <getopt.h>
#include <boost/test/unit_test.hpp>