libcacard: stop including qemu-common.h
PATCH 1/1 libcacard: stop including qemu-common.h
This is a small step towards making libcacard standalone.
--- libcacard/cac.c | 5 ++++- libcacard/card_7816.c | 4 +++- libcacard/event.c | 2 +- libcacard/vcard.c | 4 +++- libcacard/vcard_emul_nss.c | 2 +- libcacard/vreader.c | 4 +++- libcacard/vscclient.c | 2 +- 7 files changed, 16 insertions(+), 7 deletions(-)
libcacard/cac.c +4 -1
@@ -5,7 +5,10 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qemu-common.h" +#include "glib-compat.h" + +#include <string.h> +#include <stdbool.h> #include "cac.h" #include "vcard.h"
libcacard/card_7816.c +3 -1
@@ -5,7 +5,9 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qemu-common.h" +#include "glib-compat.h" + +#include <string.h> #include "vcard.h" #include "vcard_emul.h"
libcacard/event.c +1 -1
@@ -5,7 +5,7 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qemu-common.h" +#include "glib-compat.h" #include "vcard.h" #include "vreader.h"
libcacard/vcard.c +3 -1
@@ -5,7 +5,9 @@* See the COPYING.LIB file in the top-level directory. */ -#include "qemu-common.h" +#include "glib-compat.h" + +#include <string.h> #include "vcard.h" #include "vcard_emul.h"
libcacard/vcard_emul_nss.c +1 -1
@@ -25,7 +25,7 @@#include <prthread.h> #include <secerr.h> -#include "qemu-common.h" +#include "glib-compat.h" #include "vcard.h" #include "card_7816t.h"
libcacard/vreader.c +3 -1
@@ -10,7 +10,9 @@#endif #define G_LOG_DOMAIN "libcacard" -#include "qemu-common.h" +#include "glib-compat.h" + +#include <string.h> #include "vcard.h" #include "vcard_emul.h"
libcacard/vscclient.c +1 -1
@@ -17,7 +17,7 @@#define closesocket (x) close(x)#endif -#include "qemu-common.h" +#include "glib-compat.h" #include "vscard_common.h"
Signature · 1 line
2.3.5
Quoted 1 line · Paolo Bonzini
This is a small step towards making libcacard standalone.
No, this does not build, it complains about printf everywhere and some other things, like atoi. I'll try to make it better, and maybe to omit glib-compat inclusion too from some places.
Thanks,
/mjt
Quoted 4 lines · Michael Tokarev
Quoted 1 line
This is a small step towards making libcacard standalone.
No, this does not build, it complains about printf everywhere and some other things, like atoi. I'll try to make it better, and maybe to omit glib-compat inclusion too from some places.
Weird, it builds here. Must be a different glib.
Paolo
Quoted 7 lines · Paolo Bonzini
Quoted 4 lines · Michael Tokarev
Quoted 1 line
This is a small step towards making libcacard standalone.
No, this does not build, it complains about printf everywhere and some other things, like atoi. I'll try to make it better, and maybe to omit glib-compat inclusion too from some places.
Weird, it builds here. Must be a different glib.
All the missing includes are in vscclient.c.
/mjt
27.04.2015 16:01, Michael Tokarev пишет:
Quoted 10 lines
Quoted 7 lines · Paolo Bonzini
Quoted 4 lines · Michael Tokarev
Quoted 1 line
This is a small step towards making libcacard standalone.
No, this does not build, it complains about printf everywhere and some other things, like atoi. I'll try to make it better, and maybe to omit glib-compat inclusion too from some places.
Weird, it builds here. Must be a different glib.
All the missing includes are in
vscclient.c.
stdio.h for printfstring.h for various strcmp etcstdlib.h for atoiunistd.h (on *nix) for getopt
It looks like you didn't build vscclient.
Quoted 8 lines · Michael Tokarev
Quoted 2 lines
Quoted 2 lines
All the missing includes are in
vscclient.c.
stdio.hfor printfstring.hfor various strcmp etcstdlib.hfor atoiunistd.h(on *nix) for getoptIt looks like you didn't build vscclient.
/me holds myself guilty.
Paolo