aboutsummaryrefslogtreecommitdiff
path: root/libcacard/vscclient.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-04-27 12:34:18 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2015-04-30 16:05:48 +0300
commit28507a415a9b1e897aa8cdab658c6cdc00eff6cd (patch)
treed1a0ed15180b09178418c8720b2e412d71bb1ef2 /libcacard/vscclient.c
parentd3e4abdddfcf70b2e678de1c6b9b1c6cd3ce541e (diff)
libcacard: stop including qemu-common.h
This is a small step towards making libcacard standalone. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard/vscclient.c')
-rw-r--r--libcacard/vscclient.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c
index fa6041de99..0652684437 100644
--- a/libcacard/vscclient.c
+++ b/libcacard/vscclient.c
@@ -10,14 +10,20 @@
* See the COPYING.LIB file in the top-level directory.
*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#ifndef _WIN32
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#include <unistd.h>
#define closesocket(x) close(x)
+#else
+#include <getopt.h>
#endif
-#include "qemu-common.h"
+#include "glib-compat.h"
#include "vscard_common.h"