Merge remote-tracking branch 'stefanha/trivial-patches' into staging
* stefanha/trivial-patches: make: fix clean rule by removing build file in qom/ configure: Link qga against UST tracing related libraries configure: Link QEMU against 'liburcu-bp' main-loop: make qemu_event_handle static block/curl: Replace usleep by g_usleep qtest: Add missing GCC_FMT_ATTR w32: Undefine error constants before their redefinition configure: fix mingw32 libs_qga typo
This commit is contained in:
		
						commit
						72fe3aaed9
					
				
							
								
								
									
										1
									
								
								Makefile
								
								
								
								
							
							
						
						
									
										1
									
								
								Makefile
								
								
								
								
							| 
						 | 
				
			
			@ -217,6 +217,7 @@ clean:
 | 
			
		|||
	rm -f *.o *.d *.a *.lo $(TOOLS) $(HELPERS-y) qemu-ga TAGS cscope.* *.pod *~ */*~
 | 
			
		||||
	rm -Rf .libs
 | 
			
		||||
	rm -f slirp/*.o slirp/*.d audio/*.o audio/*.d block/*.o block/*.d net/*.o net/*.d fsdev/*.o fsdev/*.d ui/*.o ui/*.d qapi/*.o qapi/*.d qga/*.o qga/*.d
 | 
			
		||||
	rm -f qom/*.o qom/*.d
 | 
			
		||||
	rm -f qemu-img-cmds.h
 | 
			
		||||
	rm -f trace/*.o trace/*.d
 | 
			
		||||
	rm -f trace.c trace.h trace.c-timestamp trace.h-timestamp
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -282,7 +282,7 @@ static CURLState *curl_init_state(BDRVCURLState *s)
 | 
			
		|||
            break;
 | 
			
		||||
        }
 | 
			
		||||
        if (!state) {
 | 
			
		||||
            usleep(100);
 | 
			
		||||
            g_usleep(100);
 | 
			
		||||
            curl_multi_do(s);
 | 
			
		||||
        }
 | 
			
		||||
    } while(!state);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -526,7 +526,7 @@ EOF
 | 
			
		|||
  bindir="\${prefix}"
 | 
			
		||||
  sysconfdir="\${prefix}"
 | 
			
		||||
  confsuffix=""
 | 
			
		||||
  libs_qga="-lws2_32 -lwinmm -lpowrprof $lib_qga"
 | 
			
		||||
  libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
werror=""
 | 
			
		||||
| 
						 | 
				
			
			@ -2680,7 +2680,8 @@ if test "$trace_backend" = "ust"; then
 | 
			
		|||
int main(void) { return 0; }
 | 
			
		||||
EOF
 | 
			
		||||
  if compile_prog "" "" ; then
 | 
			
		||||
    LIBS="-lust $LIBS"
 | 
			
		||||
    LIBS="-lust -lurcu-bp $LIBS"
 | 
			
		||||
    libs_qga="-lust -lurcu-bp $libs_qga"
 | 
			
		||||
  else
 | 
			
		||||
    echo
 | 
			
		||||
    echo "Error: Trace backend 'ust' missing libust header files"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -164,7 +164,7 @@ static int qemu_signal_init(void)
 | 
			
		|||
 | 
			
		||||
#else /* _WIN32 */
 | 
			
		||||
 | 
			
		||||
HANDLE qemu_event_handle = NULL;
 | 
			
		||||
static HANDLE qemu_event_handle = NULL;
 | 
			
		||||
 | 
			
		||||
static void dummy_event_handler(void *opaque)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,9 @@
 | 
			
		|||
#include <ws2tcpip.h>
 | 
			
		||||
 | 
			
		||||
#define socket_error() WSAGetLastError()
 | 
			
		||||
#undef EWOULDBLOCK
 | 
			
		||||
#undef EINTR
 | 
			
		||||
#undef EINPROGRESS
 | 
			
		||||
#define EWOULDBLOCK WSAEWOULDBLOCK
 | 
			
		||||
#define EINTR       WSAEINTR
 | 
			
		||||
#define EINPROGRESS WSAEINPROGRESS
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										3
									
								
								qtest.c
								
								
								
								
							
							
						
						
									
										3
									
								
								qtest.c
								
								
								
								
							| 
						 | 
				
			
			@ -156,7 +156,8 @@ static void qtest_send_prefix(CharDriverState *chr)
 | 
			
		|||
            tv.tv_sec, tv.tv_usec);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static void qtest_send(CharDriverState *chr, const char *fmt, ...)
 | 
			
		||||
static void GCC_FMT_ATTR(2, 3) qtest_send(CharDriverState *chr,
 | 
			
		||||
                                          const char *fmt, ...)
 | 
			
		||||
{
 | 
			
		||||
    va_list ap;
 | 
			
		||||
    char buffer[1024];
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue