[zeromq-dev] [patch] 0001-Added-support-for-latest-OpenPGM-5.1.99-on-OSX10.6.patch

Steven McCoy steven.mccoy at miru.hk
Wed Dec 22 02:48:56 CET 2010


On what version of OSX?  I'm on 10.6.5 and this is never raised:

--- include/impl/features.h (revision 1244)
+++ include/impl/features.h (working copy)
@@ -35,6 +35,7 @@
 # define CONFIG_HAVE_GETTIMEOFDAY 1
 # endif
 # if (_POSIX_C_SOURCE - 0) >= 199309L || (__POSIX_VISIBLE - 0) >= 199309L
+#error "clock_gettime"
 # define CONFIG_HAVE_CLOCK_GETTIME 1
 # endif
 #endif

-- 
Steve-o

On 22 December 2010 09:18, Scott <alcoholiday at gmail.com> wrote:

> The issue was that the top part with POSIX defines was evaluating TRUE and
> setting CONFIG_HAVE_CLOCK_GETTIME to 1. Even if the the other part
> evaluated, I was trying suppress the include of features.h, w/o modifying
> the openpgm code.
>
> On Tue, Dec 21, 2010 at 4:55 PM, Steven McCoy <steven.mccoy at miru.hk>wrote:
>
>> On 22 December 2010 01:34, Scott <alcoholiday at gmail.com> wrote:
>>
>>> >> -DCONFIG_HAVE_GETTIMEOFDAY=1 -DCONFIG_HAVE_FTIME
>>> >
>>> > I don't think these should be here for Darwin, the latter two are
>>> covered
>>> > by pgm/impl/features.h.
>>>
>>> Yes they are - but pgm/impl/features.h is incorrectly (I believe)
>>> interpreting the _POSIX or __POSIX flags and setting
>>> CONFIG_HAVE_CLOCK_GETTIME
>>>
>>>
>> There is a separate section just for Darwin at the bottom of features.h?
>>
>>  #if defined(__APPLE__)
>>  #       define CONFIG_HAVE_FTIME                1
>>  #       define CONFIG_HAVE_GETTIMEOFDAY         1
>>  #endif
>>
>> --
>> Steve-o
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20101222/c7707208/attachment.htm>


More information about the zeromq-dev mailing list