Forum OpenACS Development: EAI_SYSTEM Definition

Collapse
Posted by Maurizio Martignano on
Dear all,

today I updated my distribution and in doing that I had to introduce the following temporary fix:

(…)
#include "ns.h"

#ifndef EAI_SYSTEM
#define EAI_SYSTEM (-11)
#endif 

 /*
 * Constants
 */
(…)
in the file NSD.H.

I don't know if it is the proper way and/or place to add this missing definition.

Hope it helps,
Maurizio

Collapse
2: Re: EAI_SYSTEM Definition (response to 1)
Posted by Gustaf Neumann on
Maurizio,

many thanks for reporting. I've addressed the issue in the NaviServer code base in a different way, since EAI_SYSTEM is not supported at all by the MSC runtime. The approach above might lead to unexpected behavior when Microsoft decides to use the constant -11 for other conditions.

Collapse
3: Re: EAI_SYSTEM Definition (response to 2)
Posted by Maurizio Martignano on
Thank you very much Gustaf. I'll include your update in my distro right now.

Once again thank you,
Maurizio