[asterisk-bugs] [JIRA] (ASTERISK-23056) INFINITY and NAN undefined

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Jan 16 09:19:03 CST 2014


    [ https://issues.asterisk.org/jira/browse/ASTERISK-23056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213244#comment-213244 ] 

Rusty Newton edited comment on ASTERISK-23056 at 1/16/14 9:18 AM:
------------------------------------------------------------------

"You will have to wait before you can submit until our legal department reviews your signed license agreement."

Crap.

Here is the patch, though:

[Edit by Rusty Newton - Removed inline patch as per guidelines ]



                
      was (Author: capouch):
    "You will have to wait before you can submit until our legal department reviews your signed license agreement."

Crap.

Here is the patch, though:

** snip ** 

--- res/res_pjsip/include/res_pjsip_private.h.orig	2013-12-21 00:12:06.673333334 +0000
+++ res/res_pjsip/include/res_pjsip_private.h	2013-12-21 00:12:23.499999999 +0000
@@ -8,6 +8,16 @@
 #ifndef RES_PJSIP_PRIVATE_H_
 #define RES_PJSIP_PRIVATE_H_
 
+//Workaround so build will proceed
+#ifndef INFINITY
+#define INFINITY (1.0/0.0)
+#endif 
+
+#ifndef NAN
+#define NAN (0.0/0.0)
+#endif
+#include "asterisk/module.h"
+
 struct ao2_container;
 struct ast_threadpool_options;



                  
> INFINITY and NAN undefined
> --------------------------
>
>                 Key: ASTERISK-23056
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23056
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 12.0.0
>         Environment: Arch Linux 2013.05
>            Reporter: capouch
>            Assignee: capouch
>         Attachments: inf-nan-patch.txt
>
>
> INFINITY and NAN are referenced in various files in res/res_pjsip, but undefined in the Asterisk source tree.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list