[uae] Fix for building with GCC 2.95

  • From: Richard Drummond <evilrich@xxxxxxxxxxxxxx>
  • To: uae@xxxxxxxxxxxxx
  • Date: Thu, 9 Sep 2004 21:52:48 -0500

Hi All

Here's a trivial patch against the source code snapshot I uploaded the other 
day which fixes a problem building the bsdsocket emulation with GCC 2.95.

Cheers,
Rich
Index: src/bsdsocket-posix.c
===================================================================
RCS file: /cvsroot/uaedev/uae/src/bsdsocket-posix.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- src/bsdsocket-posix.c       4 Aug 2004 04:39:41 -0000       1.7
+++ src/bsdsocket-posix.c       10 Sep 2004 02:47:42 -0000      1.8
@@ -932,8 +932,10 @@
        } else
             write_log ("BSDSOCK: Failed to allocate memory.\n");
     } else {
-        gl_o = GL_O;
-        uae_thread_id thread = gl_o->thread;
+       uae_thread_id thread;
+
+       gl_o = GL_O;
+       thread = gl_o->thread;
         gl_o->action = 0;
         uae_sem_post (&gl_o->sem);
         uae_wait_thread (thread);

Other related posts:

  • » [uae] Fix for building with GCC 2.95