[Spice-devel] [PATCH spice-gtk 2/4] Avoid warning about snprintf on non-Linux platforms

Christophe de Dinechin christophe at dinechin.org
Wed May 10 16:18:39 UTC 2017


Signed-off-by: Christophe de Dinechin <dinechin at redhat.com>
---
src/usbutil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/usbutil.c b/src/usbutil.c
index b68a2e1..6957b74 100644
--- a/src/usbutil.c
+++ b/src/usbutil.c
@@ -27,9 +27,9 @@
#include <stdlib.h>

#ifdef USE_USBREDIR
-#ifdef __linux__
#include <stdio.h>
#include <unistd.h>
+#ifdef __linux__
#include <sys/sysmacros.h>
#ifndef major /* major and minor macros were moved to sys/sysmacros.h from sys/types.h */
#include <sys/types.h>
-- 
2.11.0 (Apple Git-81)



More information about the Spice-devel mailing list