From 0033528f4dbf21c4debb87bbe6f0b77be27bfc8e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 4 Feb 1999 20:39:09 +0000 Subject: fix syscall to something lots more portable --- src/initlog.h | 2 ++ src/loglevel.c | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/initlog.h b/src/initlog.h index 244ff9a0..fbcedc72 100644 --- a/src/initlog.h +++ b/src/initlog.h @@ -1,4 +1,6 @@ +#define _GNU_SOURCE 1 + #ifndef INITLOG_H #define INITLOG_H diff --git a/src/loglevel.c b/src/loglevel.c index 04de2e46..de2a4e11 100644 --- a/src/loglevel.c +++ b/src/loglevel.c @@ -5,8 +5,7 @@ #include #include #include - -_syscall3(int,syslog,int,type,char *,bufp,int,len); +#include int main(int argc, char **argv) { int level; @@ -17,7 +16,7 @@ int main(int argc, char **argv) { fprintf(stderr,"invalid log level %d\n",level); exit(-1); } - if (!syslog(8,NULL,level)) { + if (!syscall(SYS_syslog,8,NULL,level)) { exit(0); } else { perror("syslog"); -- cgit v1.2.1