commit | 184d26237a3d0a5449a29350a74c2240bf1097e8 | [log] [tgz] |
---|---|---|
author | Bryan Duxbury <bryanduxbury@apache.org> | Tue Aug 17 17:43:58 2010 +0000 |
committer | Bryan Duxbury <bryanduxbury@apache.org> | Tue Aug 17 17:43:58 2010 +0000 |
tree | 5879b2ba219f2a44dddbac5f239ef1838114cd89 | |
parent | 3ff373e26e633fe728c7d93485db637bbb534a85 [diff] [blame] |
THRIFT-851. php: php extension fails to compile on centos 5.x This patch introduces an approach that is compatbile with both centos and Mac. Patch: Todd Lipcon git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@986410 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/protocol/TProtocol.h b/lib/cpp/src/protocol/TProtocol.h index 7d7b065..2e24f75 100644 --- a/lib/cpp/src/protocol/TProtocol.h +++ b/lib/cpp/src/protocol/TProtocol.h
@@ -76,8 +76,8 @@ using apache::thrift::transport::TTransport; -#ifdef HAVE_ENDIAN_H -#include <endian.h> +#ifdef HAVE_SYS_PARAM_H_ +#include <sys/param.h> #endif #ifndef __BYTE_ORDER