瀏覽代碼

In trunk, totemip.h and totem.h call for "../include/swab.h" - this works fine
when building openais itself but causes problems when installed as those files
will not be in the right place.

So, I've moved these includes out of totemip.h and totem.h and into the .c files
that call them.


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@1370 fd59a12c-fef9-0310-b244-a6a79926bd2f

Patrick Caulfield 19 年之前
父節點
當前提交
08dd4174c6
共有 20 個文件被更改,包括 19 次插入7 次删除
  1. 1 0
      exec/clm.c
  2. 1 1
      exec/evs.c
  3. 1 0
      exec/flow.c
  4. 1 0
      exec/ipc.c
  5. 1 0
      exec/lck.c
  6. 1 0
      exec/main.c
  7. 1 0
      exec/print.c
  8. 1 0
      exec/service.c
  9. 1 0
      exec/timer.c
  10. 0 1
      exec/totem.h
  11. 2 1
      exec/totemconfig.c
  12. 1 1
      exec/totemip.c
  13. 0 2
      exec/totemip.h
  14. 1 0
      exec/totemmrp.c
  15. 1 0
      exec/totemnet.c
  16. 1 0
      exec/totemnet.h
  17. 1 0
      exec/totempg.c
  18. 1 1
      exec/totemsrp.c
  19. 1 0
      lib/clm.c
  20. 1 0
      lib/evs.c

+ 1 - 0
exec/clm.c

@@ -57,6 +57,7 @@
 #include <netinet/in.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 
 
+#include "swab.h"
 #include "totem.h"
 #include "totem.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/saClm.h"
 #include "../include/saClm.h"

+ 1 - 1
exec/evs.c

@@ -49,6 +49,7 @@
 #include <netinet/in.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 
 
+#include "swab.h"
 #include "totem.h"
 #include "totem.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/ipc_gen.h"
 #include "../include/ipc_gen.h"
@@ -56,7 +57,6 @@
 #include "../include/list.h"
 #include "../include/list.h"
 #include "../include/queue.h"
 #include "../include/queue.h"
 #include "../lcr/lcr_comp.h"
 #include "../lcr/lcr_comp.h"
-#include "../include/swab.h"
 #include "totempg.h"
 #include "totempg.h"
 #include "main.h"
 #include "main.h"
 #include "ipc.h"
 #include "ipc.h"

+ 1 - 0
exec/flow.c

@@ -46,6 +46,7 @@
 #include <assert.h>
 #include <assert.h>
 #include <pthread.h>
 #include <pthread.h>
 
 
+#include "swab.h"
 #include "flow.h"
 #include "flow.h"
 #include "totem.h"
 #include "totem.h"
 #include "totempg.h"
 #include "totempg.h"

+ 1 - 0
exec/ipc.c

@@ -58,6 +58,7 @@
 #include <ucred.h>
 #include <ucred.h>
 #endif
 #endif
 
 
+#include "swab.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/list.h"
 #include "../include/list.h"
 #include "../include/queue.h"
 #include "../include/queue.h"

+ 1 - 0
exec/lck.c

@@ -48,6 +48,7 @@
 #include <signal.h>
 #include <signal.h>
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 
 
+#include "swab.h"
 #include "service.h"
 #include "service.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/saLck.h"
 #include "../include/saLck.h"

+ 1 - 0
exec/main.c

@@ -56,6 +56,7 @@
 #include <sched.h>
 #include <sched.h>
 #include <time.h>
 #include <time.h>
 
 
+#include "swab.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/list.h"
 #include "../include/list.h"
 #include "../include/queue.h"
 #include "../include/queue.h"

+ 1 - 0
exec/print.c

@@ -56,6 +56,7 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include <pthread.h>
 #include <pthread.h>
 
 
+#include "swab.h"
 #include "print.h"
 #include "print.h"
 #include "totemip.h"
 #include "totemip.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"

+ 1 - 0
exec/service.c

@@ -39,6 +39,7 @@
 #include <assert.h>
 #include <assert.h>
 
 
 #include "../lcr/lcr_ifact.h"
 #include "../lcr/lcr_ifact.h"
+#include "swab.h"
 #include "service.h"
 #include "service.h"
 #include "mainconfig.h"
 #include "mainconfig.h"
 #include "util.h"
 #include "util.h"

+ 1 - 0
exec/timer.c

@@ -56,6 +56,7 @@
 #include <sched.h>
 #include <sched.h>
 #include <time.h>
 #include <time.h>
 
 
+#include "swab.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/list.h"
 #include "../include/list.h"
 #include "../include/queue.h"
 #include "../include/queue.h"

+ 0 - 1
exec/totem.h

@@ -36,7 +36,6 @@
 #ifndef TOTEM_H_DEFINED
 #ifndef TOTEM_H_DEFINED
 #define TOTEM_H_DEFINED
 #define TOTEM_H_DEFINED
 #include "totemip.h"
 #include "totemip.h"
-#include "../include/swab.h"
 
 
 #define MESSAGE_SIZE_MAX	1024*1024 /* (1MB) */
 #define MESSAGE_SIZE_MAX	1024*1024 /* (1MB) */
 #define PROCESSOR_COUNT_MAX	384
 #define PROCESSOR_COUNT_MAX	384

+ 2 - 1
exec/totemconfig.c

@@ -46,7 +46,8 @@
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 #include <sys/param.h>
 #include <sys/param.h>
 
 
-#include "../include/list.h"
+#include "swab.h"
+#include "list.h"
 #include "util.h"
 #include "util.h"
 #include "totem.h"
 #include "totem.h"
 #include "totemconfig.h"
 #include "totemconfig.h"

+ 1 - 1
exec/totemip.c

@@ -79,8 +79,8 @@
 #define s6_addr16 __u6_addr.__u6_addr16
 #define s6_addr16 __u6_addr.__u6_addr16
 #endif
 #endif
 
 
-#include "totemip.h"
 #include "swab.h"
 #include "swab.h"
+#include "totemip.h"
 
 
 #define LOCALHOST_IPV4 "127.0.0.1"
 #define LOCALHOST_IPV4 "127.0.0.1"
 #define LOCALHOST_IPV6 "::1"
 #define LOCALHOST_IPV6 "::1"

+ 0 - 2
exec/totemip.h

@@ -43,8 +43,6 @@
 #include <sys/socket.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/in.h>
 
 
-#include "../include/swab.h"
-
 #ifdef SO_NOSIGPIPE
 #ifdef SO_NOSIGPIPE
 #ifndef MSG_NOSIGNAL
 #ifndef MSG_NOSIGNAL
 #define MSG_NOSIGNAL 0
 #define MSG_NOSIGNAL 0

+ 1 - 0
exec/totemmrp.c

@@ -53,6 +53,7 @@
 #include <sys/time.h>
 #include <sys/time.h>
 #include <sys/poll.h>
 #include <sys/poll.h>
 
 
+#include "swab.h"
 #include "totem.h"
 #include "totem.h"
 #include "totemsrp.h"
 #include "totemsrp.h"
 #include "aispoll.h"
 #include "aispoll.h"

+ 1 - 0
exec/totemnet.c

@@ -60,6 +60,7 @@
 #include "aispoll.h"
 #include "aispoll.h"
 #include "totemnet.h"
 #include "totemnet.h"
 #include "wthread.h"
 #include "wthread.h"
+#include "swab.h"
 #include "../include/queue.h"
 #include "../include/queue.h"
 #include "../include/sq.h"
 #include "../include/sq.h"
 #include "../include/list.h"
 #include "../include/list.h"

+ 1 - 0
exec/totemnet.h

@@ -37,6 +37,7 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/socket.h>
 
 
+#include "swab.h"
 #include "totem.h"
 #include "totem.h"
 #include "aispoll.h"
 #include "aispoll.h"
 
 

+ 1 - 0
exec/totempg.c

@@ -94,6 +94,7 @@
 #include <pthread.h>
 #include <pthread.h>
 #include <errno.h>
 #include <errno.h>
 
 
+#include "swab.h"
 #include "../include/hdb.h"
 #include "../include/hdb.h"
 #include "../include/list.h"
 #include "../include/list.h"
 #include "totempg.h"
 #include "totempg.h"

+ 1 - 1
exec/totemsrp.c

@@ -73,6 +73,7 @@
 #include <sys/time.h>
 #include <sys/time.h>
 #include <sys/poll.h>
 #include <sys/poll.h>
 
 
+#include "swab.h"
 #include "aispoll.h"
 #include "aispoll.h"
 #include "totemsrp.h"
 #include "totemsrp.h"
 #include "totemrrp.h"
 #include "totemrrp.h"
@@ -81,7 +82,6 @@
 #include "../include/sq.h"
 #include "../include/sq.h"
 #include "../include/list.h"
 #include "../include/list.h"
 #include "../include/hdb.h"
 #include "../include/hdb.h"
-#include "swab.h"
 
 
 #include "crypto.h"
 #include "crypto.h"
 
 

+ 1 - 0
lib/clm.c

@@ -45,6 +45,7 @@
 #include <sys/select.h>
 #include <sys/select.h>
 #include <sys/un.h>
 #include <sys/un.h>
 
 
+#include "../include/swab.h"
 #include "../exec/totem.h"
 #include "../exec/totem.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/saClm.h"
 #include "../include/saClm.h"

+ 1 - 0
lib/evs.c

@@ -46,6 +46,7 @@
 #include <sys/socket.h>
 #include <sys/socket.h>
 #include <errno.h>
 #include <errno.h>
 
 
+#include "../include/swab.h"
 #include "../exec/totem.h"
 #include "../exec/totem.h"
 #include "../include/saAis.h"
 #include "../include/saAis.h"
 #include "../include/evs.h"
 #include "../include/evs.h"