summaryrefslogtreecommitdiffhomepage
path: root/libs
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-16 13:40:22 +0000
committerSteven Barth <steven@midlink.org>2009-03-16 13:40:22 +0000
commit5de48782578cd60f5aeedb2337b6e2961a2c6393 (patch)
tree699b9b457c5268dbf6ffdeccff218e78acc4b2b0 /libs
parent13767f5d1a92be7c86946f9cd44f772ac2d2091b (diff)
nixio: solaris does not recognize LOG_PERROR
Diffstat (limited to 'libs')
-rw-r--r--libs/nixio/src/syslog.c2
1 files changed, 2 insertions, 0 deletions
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")) {