diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-08-12 03:08:41 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-08-12 03:08:41 +0000 |
commit | c336c99e609b2918ca664bc1fdbfb916a6811508 (patch) | |
tree | ff04c4774b60cef2dce98d88497ac5ac4a3cb8e7 /src/common/log.h | |
parent | 5126f203f23773f64b51e5c0c7b7e1d702f26ca9 (diff) | |
download | tor-c336c99e609b2918ca664bc1fdbfb916a6811508.tar.gz tor-c336c99e609b2918ca664bc1fdbfb916a6811508.zip |
Start of port to win32. Missing are:
- signal support
- forking for DNS farm
- changes for async IO
- daemonizing
In other words, some files still don't build, and the ones that do build,
do nonblocking IO incorrectly.
I'm also not checking in the project files till I have a good place
for them.
svn:r380
Diffstat (limited to 'src/common/log.h')
-rw-r--r-- | src/common/log.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/common/log.h b/src/common/log.h index 0b3d57d6e7..38f330c081 100644 --- a/src/common/log.h +++ b/src/common/log.h @@ -7,7 +7,18 @@ #ifndef __LOG_H +#ifdef HAVE_SYSLOG_H #include <syslog.h> +#else +#define LOG_DEBUG 0 +#define LOG_INFO 1 +#define LOG_NOTICE 2 +#define LOG_WARNING 3 +#define LOG_ERR 4 +#define LOG_CRIT 5 +#define LOG_ALERT 6 +#define LOG_EMERG 7 +#endif /* magic to make GCC check for proper format strings. */ #ifdef __GNUC__ |