[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peng Futian updated ZOOKEEPER-1240:
-----------------------------------


Index: src/c/include/recordio.h
===================================================================
--- src/c/include/recordio.h    (修订版 1187635)
+++ src/c/include/recordio.h    (工作拷贝)
@@ -72,9 +72,9 @@
 void close_buffer_iarchive(struct iarchive **ia);
 char *get_buffer(struct oarchive *);
 int get_buffer_len(struct oarchive *);
-
+#ifndef htonll
 int64_t htonll(int64_t v);
-
+#endif
 #ifdef __cplusplus
 }
 #endif

                
> Compiler issue with redhat linux
> --------------------------------
>
>                 Key: ZOOKEEPER-1240
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1240
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: c client
>    Affects Versions: 3.3.3
>         Environment: Linux phy 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 
> 2007 x86_64 x86_64 x86_64 GNU/Linux
> gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)
>            Reporter: Peng Futian
>            Priority: Minor
>              Labels: patch
>             Fix For: 3.3.4
>
>         Attachments: ZOOKEEPER-1240.patch
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When I compile zookeeper c client in my project, there are some error:
> ../../../include/zookeeper/recordio.h:70: error:expected unqualified-id 
> before '__extension__'
> ../../../include/zookeeper/recordio.h:70: error:expected `)' before 
> '__extension__'
> ../../.. /include/zookeeper/recordio.h:70: error:expected unqualified-id 
> before ')' token

--
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


Reply via email to