the constructor priority field only works on very latest gccs.  This
needs to be resolved in some other way so atleast the current gen of gcc
compilers operates and it compiles on other platforms.

patch reverts change.

Regards
-steve


Index: include/corosync/engine/logsys.h
===================================================================
--- include/corosync/engine/logsys.h	(revision 1992)
+++ include/corosync/engine/logsys.h	(working copy)
@@ -175,7 +175,7 @@
 #define LOG_REC_END (&logsys_rec_end)
 
 #define LOGSYS_DECLARE_SYSTEM(name,mode,file,facility,format,rec_size)	\
-__attribute__ ((constructor (101))) static void logsys_system_init (void)	\
+__attribute__ ((constructor)) static void logsys_system_init (void)	\
 {									\
 	const char *error_string;						\
 									\
@@ -188,7 +188,7 @@
 }
 
 #define LOGSYS_DECLARE_NOSUBSYS(priority)				\
-__attribute__ ((constructor (102))) static void logsys_nosubsys_init (void)	\
+__attribute__ ((constructor)) static void logsys_nosubsys_init (void)	\
 {									\
 	unsigned int pri, tags;						\
 									\
@@ -203,7 +203,7 @@
 }
 
 #define LOGSYS_DECLARE_SUBSYS(subsys,priority)				\
-__attribute__ ((constructor (102))) static void logsys_subsys_init (void)	\
+__attribute__ ((constructor)) static void logsys_subsys_init (void)	\
 {									\
 	unsigned int pri, tags;						\
 									\
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to