]> granicus.if.org Git - strace/commitdiff
2003-01-10 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 10 Jan 2003 20:05:54 +0000 (20:05 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 10 Jan 2003 20:05:54 +0000 (20:05 +0000)
* configure.ac: Check struct T_conn_res for QUEUE_ptr or ACCEPTOR_id.
* stream.c (print_transport_message): Use #ifdefs for those members.

stream.c

index a7629fbb69ee575a3fb4726b33c41b6220e362cc..db2c82316594a68c67d9c1a26f38e0ada9416d15 100644 (file)
--- a/stream.c
+++ b/stream.c
@@ -708,8 +708,13 @@ int len;
 #ifdef T_CONN_RES
            case T_CONN_RES:    /* connect response   */
                GET (T_CONN_RES, conn_res);
+#ifdef HAVE_STRUCT_T_CONN_RES_QUEUE_PTR
                COMMA ();
                tprintf ("QUEUE=%p", m.conn_res.QUEUE_ptr);
+#elif defined HAVE_STRUCT_T_CONN_RES_ACCEPTOR_ID
+               COMMA ();
+               tprintf ("QUEUE=%p", m.conn_res.ACCEPTOR_id);
+#endif
                ADDR (conn_res, OPT);
                COMMA ();
                tprintf ("SEQ=%ld", m.conn_res.SEQ_number);