projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13767f5
)
nixio: solaris does not recognize LOG_PERROR
author
Steven Barth
<steven@midlink.org>
Mon, 16 Mar 2009 13:40:22 +0000
(13:40 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 16 Mar 2009 13:40:22 +0000
(13:40 +0000)
libs/nixio/src/syslog.c
patch
|
blob
|
history
diff --git
a/libs/nixio/src/syslog.c
b/libs/nixio/src/syslog.c
index b3d87e2061bc19db5489a1f278e7628920c2a185..9b3581df1a9c174b8b1bdc19e43346ec4659e7c6 100644
(file)
--- 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")) {