[cx-oracle-users] xa.h missing
Brought to you by:
atuining
From: Harri P. <har...@tr...> - 2004-11-18 09:03:11
|
Hello, I saw someone else had hit the same problem on linux, where by xa.h header was not found. Wouldn't it be prudent to inline the relevant bits in cx_Oracle.c, as xa.h does not seem to be a standard include? The only place I could find it was on a windows machine Oracle 9.2 directory, at rdbms/demo/xa.h. I modified my local copy by adding the following in cx_Oracle.c, in place of #include "xa.h" ------------------------------------------------ // Inline relevant bits from non-std xa.h /* * Transaction branch identification: XID and NULLXID: */ #define XIDDATASIZE 128 /* size in bytes */ #define MAXGTRIDSIZE 64 /* maximum size in bytes of gtrid */ #define MAXBQUALSIZE 64 /* maximum size in bytes of bqual */ struct xid_t { long formatID; /* format identifier */ long gtrid_length; /* value from 1 through 64 */ long bqual_length; /* value from 1 through 64 */ char data[XIDDATASIZE]; }; typedef struct xid_t XID; // end of inline --------------------------------------------------- Now it compiles, yet to see if it actually works ;-) -Harri This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code. |