summaryrefslogtreecommitdiffstats
path: root/syslog.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-12-11 22:52:06 -0800
committerKaz Kylheku <kaz@kylheku.com>2018-12-11 22:52:06 -0800
commitb07ecc142c6251517be5f4af9c76ba539b54eecc (patch)
treed0f6d56e775ef3ae766fc7adcad8b82499f0b3c5 /syslog.c
parent2938a0d7e64e2adad3db0988689635e81ad91739 (diff)
downloadtxr-b07ecc142c6251517be5f4af9c76ba539b54eecc.tar.gz
txr-b07ecc142c6251517be5f4af9c76ba539b54eecc.tar.bz2
txr-b07ecc142c6251517be5f4af9c76ba539b54eecc.zip
Drastically reduce inclusion of <dirent.h>.
The <dirent.h> header is included all over the place because it is needed by a single declaration in stream.h. That declaration is for a function that is only called within stream.c, so we make it internal. Now only stream.c has to include <dirent.h>. * buf.c, debug.c, eval.c, ffi.c, filter.c, gc.c, gencadr.txr, hash.c, lib.c, lisplib.c, match.c, parser.c, regex.c, socket.c, struct.c, strudel.c, sysif.c, syslog.c, termios.c, txr.c, unwind.c, vm.c: Remove #include <dirent.h>. * cadr.c: Regenerated. * stream.c (make_dir_stream): Make external function static. * stream.h (make_dir_stream): Declaration updated.
Diffstat (limited to 'syslog.c')
-rw-r--r--syslog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/syslog.c b/syslog.c
index af46bce3..cd2e8ca8 100644
--- a/syslog.c
+++ b/syslog.c
@@ -31,7 +31,6 @@
#include <stdarg.h>
#include <wchar.h>
#include <signal.h>
-#include <dirent.h>
#include <syslog.h>
#include "config.h"
#include ALLOCA_H