diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index e5147cbde8..c9c99c150c 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -224,4 +224,12 @@ float roundf(float x); #endif #endif +#ifndef INFINITY +#define INFINITY (1.0/0.0) +#endif + +#ifndef NAN +#define NAN (0.0/0.0) +#endif + #endif diff --git a/res/res_pjsip/include/res_pjsip_private.h b/res/res_pjsip/include/res_pjsip_private.h index a2d1c6eb46..aee6e3e3ff 100644 --- a/res/res_pjsip/include/res_pjsip_private.h +++ b/res/res_pjsip/include/res_pjsip_private.h @@ -9,6 +9,7 @@ #define RES_PJSIP_PRIVATE_H_ #include "asterisk/module.h" +#include "asterisk/compat.h" struct ao2_container; struct ast_threadpool_options;