diff options
-rw-r--r-- | libs/nixio/src/syslog.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/nixio/src/syslog.c b/libs/nixio/src/syslog.c index b3d87e2061..9b3581df1a 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")) { |