Subject: | Use fallback/syslog.h if I_SYSLOG is not defined |
Syslog.xs should be including fallback/syslog.h on non-Windows systems where syslog.h is not defined -- for example, the Blackberry 10+ series of devices uses a stripped down verison of QNX NTO which doesn't have the header[*].
I'm also not sure what the '|| PATCHLEVEL < 6' bit is about -- if on 5.5 or earlier, always include the header? I had to remove it to actually make the fallback work.
# undef HAVE_SYSLOG
# include "fallback/syslog.h"
#else
-# if defined(I_SYSLOG) || PATCHLEVEL < 6
+# if defined(I_SYSLOG)
# include <syslog.h>
+# else
+# undef HAVE_SYSLOG
+# include "fallback/syslog.h"
# endif
#endif