Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Mac OS X patch
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
xue yong zhi  
View profile  
 More options Feb 9, 7:29 pm
From: xue yong zhi <xue.yong....@gmail.com>
Date: Mon, 9 Feb 2009 16:29:38 -0800 (PST)
Local: Mon, Feb 9 2009 7:29 pm
Subject: Mac OS X patch

--- a/ext/libstrophe-0.7.3/src/event.c
+++ b/ext/libstrophe-0.7.3/src/event.c
-    tv.tv_sec = 0;
-    tv.tv_usec = ((next < timeout) ? next : timeout) * 1000;
+    usec = ((next < timeout) ? next : timeout) * 1000;
+    tv.tv_sec = usec / 1000000;
+    tv.tv_usec = usec % 1000000;

Season: select will return -1 with errno EINVAL 22 if tv_usec is
larger than 1000000. It will be a problem for xmpp_run_once if timeout
is over 1000.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jack Moffitt  
View profile  
 More options May 5, 3:29 pm
From: Jack Moffitt <metaj...@gmail.com>
Date: Tue, 5 May 2009 13:29:21 -0600
Local: Tues, May 5 2009 3:29 pm
Subject: Re: Mac OS X patch

> --- a/ext/libstrophe-0.7.3/src/event.c
> +++ b/ext/libstrophe-0.7.3/src/event.c
> -    tv.tv_sec = 0;
> -    tv.tv_usec = ((next < timeout) ? next : timeout) * 1000;
> +    usec = ((next < timeout) ? next : timeout) * 1000;
> +    tv.tv_sec = usec / 1000000;
> +    tv.tv_usec = usec % 1000000;

> Season: select will return -1 with errno EINVAL 22 if tv_usec is
> larger than 1000000. It will be a problem for xmpp_run_once if timeout
> is over 1000.

Thanks for this.  I've applied this to master.

jack.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google