DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36525>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36525


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Additional Comments From [EMAIL PROTECTED]  2005-09-17 11:50 -------
I just tried compiling on IRIX using latest CVS, but the modified jk_shm.c does
not compile using the SGI CC compiler:

"jk_shm.c", line 50: warning(1040): expected an identifier

Apparently the compiler doesn't like the union inside of the struct.  Removing
the union makes it compile and seems to function OK as well (sorry, even though
my C is a bit rusty my change sure looks like a hack!):

diff -u -r1.20 jk_shm.c
--- common/jk_shm.c     16 Sep 2005 05:52:26 -0000      1.20
+++ common/jk_shm.c     17 Sep 2005 09:43:10 -0000
@@ -43,10 +43,8 @@
 /** jk shm header record structure */
 struct jk_shm_header
 {
-    union {
-        jk_shm_header_data_t data;
-        char alignbuf[JK_SHM_ALIGN(sizeof(jk_shm_header_data_t))];
-    };
+    jk_shm_header_data_t data;
+    char alignbuf[JK_SHM_ALIGN(sizeof(jk_shm_header_data_t))];
     char   buf[1];
 };



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to