From: Steven Barth Date: Mon, 16 Mar 2009 13:40:22 +0000 (+0000) Subject: nixio: solaris does not recognize LOG_PERROR X-Git-Tag: 0.9.0~591 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5de48782578cd60f5aeedb2337b6e2961a2c6393;p=oweals%2Fluci.git nixio: solaris does not recognize LOG_PERROR --- diff --git a/libs/nixio/src/syslog.c b/libs/nixio/src/syslog.c index b3d87e206..9b3581df1 100644 --- a/libs/nixio/src/syslog.c +++ b/libs/nixio/src/syslog.c @@ -35,7 +35,9 @@ static int nixio_openlog(lua_State *L) { } else if (!strcmp(flag, "pid")) { option |= LOG_PID; } else if (!strcmp(flag, "perror")) { +#ifdef LOG_PERROR option |= LOG_PERROR; +#endif } else if (!strcmp(flag, "ndelay")) { option |= LOG_NDELAY; } else if (!strcmp(flag, "odelay")) {