[Date Prev][Date Next] [Chronological] [Thread] [Top]

slapd/controls.c: sc_mask conflicts with Irix sys/signal.h (ITS#2022)

Full_Name: Darin Broady
Version: 2.1.3
OS: Irix 6.5.15m
Submission from: (NULL) (

I am trying to compile OpenLDAP 2.1.3 on Irix 6.5.15m with MIPSpro compilers.  Compilation failed on servers/slapd/controls.c
(version because at line 54, the slap_mask_t variable sc_mask
has a redefition to sc_sigset.__sigbits[0] from <sys/signal.h>, which is
implicitly included by <arpa/nameser.h>.

The fix for this is to change the name to something else, or to
#undef sc_mask before declaring the variable.  I would opt for the
renaming of the variable.  I would possibly suggest sctrl_mask, since
it is slap_control_mask.

This doesn't happen on Solaris 8.