summaryrefslogtreecommitdiffstats
path: root/runtime/rsyslog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-04-22 14:38:12 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-04-22 14:38:12 +0100
commit3a12d05433153d5c7c84f85af6b5039fbcdd1d09 (patch)
tree2a5922d7681f5d21700d152dc09909c2809e28c9 /runtime/rsyslog.h
parentf902c9ca4891dcd65fd1f4b8bba0d23c75451dcd (diff)
downloadrsyslog-3a12d05433153d5c7c84f85af6b5039fbcdd1d09.tar.gz
rsyslog-3a12d05433153d5c7c84f85af6b5039fbcdd1d09.tar.xz
rsyslog-3a12d05433153d5c7c84f85af6b5039fbcdd1d09.zip
solved alignment errors on Solaris Sparc
Diffstat (limited to 'runtime/rsyslog.h')
-rw-r--r--runtime/rsyslog.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h
index acc31a99..b7117029 100644
--- a/runtime/rsyslog.h
+++ b/runtime/rsyslog.h
@@ -60,12 +60,8 @@
#endif
-/* under Solaris (actually only SPARC), we need to redefine some types
- * to be void, so that we get void* pointers. Otherwise, we will see
-* alignment errors.
-*/
-
/* define some base data types */
+
typedef unsigned char uchar;/* get rid of the unhandy "unsigned char" */
typedef struct thrdInfo thrdInfo_t;
typedef struct obj_s obj_t;
@@ -83,13 +79,6 @@ typedef struct nsd_gsspi_s nsd_gsspi_t;
typedef struct nsd_nss_s nsd_nss_t;
typedef struct nsdsel_ptcp_s nsdsel_ptcp_t;
typedef struct nsdsel_gtls_s nsdsel_gtls_t;
-#ifdef OS_SOLARIS
- typedef void nsd_t;
- typedef void nsdsel_t;
-#else
- typedef obj_t nsd_t;
- typedef obj_t nsdsel_t;
-#endif
typedef struct msg msg_t;
typedef struct prop_s prop_t;
typedef struct interface_s interface_t;
@@ -108,6 +97,21 @@ typedef rsRetVal (*prsf_t)(struct vmstk_s*, int); /* pointer to a RainerScript f
typedef struct tcpLstnPortList_s tcpLstnPortList_t; // TODO: rename?
typedef struct strmLstnPortList_s strmLstnPortList_t; // TODO: rename?
+/* under Solaris (actually only SPARC), we need to redefine some types
+ * to be void, so that we get void* pointers. Otherwise, we will see
+ * alignment errors.
+ */
+#ifdef OS_SOLARIS
+ typedef void * obj_t_ptr;
+ typedef void nsd_t;
+ typedef void nsdsel_t;
+#else
+ typedef obj_t obj_t_ptr;
+ typedef obj_t nsd_t;
+ typedef obj_t nsdsel_t;
+#endif
+
+
/* some universal 64 bit define... */
typedef long long int64;
typedef long long unsigned uint64;