OK, maybe that version of GCC doesn't like structure definitions in
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 May 2013 09:25:28 +0000 (09:25 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 22 May 2013 09:25:28 +0000 (09:25 +0000)
typedefs or something.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@49503 f5534014-38df-0310-8fa8-9805f1628bb7

capture_session.h

index b828ea6ef72b9c1cd91669714db1450732888cf9..fcbace1e9ef6c27edcf3fc57b5f2bbfffb1b70e5 100644 (file)
@@ -35,7 +35,7 @@ typedef enum {
 /*
  * State of a capture session.
  */
-typedef struct oh_shut_up_already {
+struct oh_shut_up_already {
     int fork_child;                 /**< If not -1, in parent, process ID of child */
     int fork_child_status;          /**< Child exit status */
 #ifdef _WIN32
@@ -49,7 +49,9 @@ typedef struct oh_shut_up_already {
     gboolean session_started;
     capture_options *capture_opts;  /**< options for this capture */
     void *cf;                       /**< handle to cfile (note: untyped handle) */
-} capture_session;
+};
+
+typedef struct oh_shut_up_already capture_session;
 
 extern void
 capture_session_init(capture_session *cap_session, void *cf);