summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-02 15:37:17 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-02 15:37:17 +0200
commit8de35eaa2c9017df885dfd071a89288ca6a0e3af (patch)
treec6cb185d912c5fa91a3dbd1a549618a251401078 /runtime/rsyslog.h
parenteb807027af9e126a212b0630c5873dddae48963b (diff)
downloadrsyslog-8de35eaa2c9017df885dfd071a89288ca6a0e3af.tar.gz
rsyslog-8de35eaa2c9017df885dfd071a89288ca6a0e3af.tar.xz
rsyslog-8de35eaa2c9017df885dfd071a89288ca6a0e3af.zip
clean compile on solaris
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r--runtime/rsyslog.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index 899f5e13..032d8c04 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -341,6 +341,11 @@ typedef enum rsObjectID rsObjID;
# define __attribute__(x) /*NOTHING*/
#endif
+#ifndef O_CLOEXEC
+/* of course, this limits the functionality... */
+# define O_CLOEXEC 0
+#endif
+
/* The following prototype is convenient, even though it may not be the 100% correct place.. -- rgerhards 2008-01-07 */
void dbgprintf(char *, ...) __attribute__((format(printf, 1, 2)));