nixio: solaris does not recognize LOG_PERROR

This commit is contained in:
Steven Barth 2009-03-16 13:40:22 +00:00
parent 13767f5d1a
commit 5de4878257

View file

@ -35,7 +35,9 @@ static int nixio_openlog(lua_State *L) {
} else if (!strcmp(flag, "pid")) { } else if (!strcmp(flag, "pid")) {
option |= LOG_PID; option |= LOG_PID;
} else if (!strcmp(flag, "perror")) { } else if (!strcmp(flag, "perror")) {
#ifdef LOG_PERROR
option |= LOG_PERROR; option |= LOG_PERROR;
#endif
} else if (!strcmp(flag, "ndelay")) { } else if (!strcmp(flag, "ndelay")) {
option |= LOG_NDELAY; option |= LOG_NDELAY;
} else if (!strcmp(flag, "odelay")) { } else if (!strcmp(flag, "odelay")) {