[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12797214#action_12797214
 ] 

Patrick Hunt commented on ZOOKEEPER-612:
----------------------------------------

@qian in that case I suggest you ifdef it, something like:

ifdef ai_addrconfig
  foo = ai_addrconfig
else
  foo = 0

that sound reasonable?


> Make Zookeeper C client can be compiled by gcc of early version
> ---------------------------------------------------------------
>
>                 Key: ZOOKEEPER-612
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-612
>             Project: Zookeeper
>          Issue Type: Improvement
>          Components: c client
>    Affects Versions: 3.2.1
>         Environment: Linux
>            Reporter: Qian Ye
>            Assignee: Qian Ye
>             Fix For: 3.3.0
>
>         Attachments: patch, patch
>
>
> The original C Client, Version 3.2.1, cannot be compiled successfully by the 
> gcc of early version, due some declaration restriction. To compile the source 
> code on the server with gcc of early version, I made some modification on the 
> original source. What's more, some extra codes are added to make the client 
> be compatible with the hosts list format: ip1:port1, ip2:port2... There is 
> often a space after this kind of comma.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to