From 86761380984465fa0d995f2b6bf92d520fe1b12f Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 2 Dec 2006 23:23:43 +0000 Subject: make client compile on windows --- src/wsman-client-options.c | 8 +++++++- src/wsman.c | 12 +++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/wsman-client-options.c b/src/wsman-client-options.c index 18f32c5..68a0d0f 100644 --- a/src/wsman-client-options.c +++ b/src/wsman-client-options.c @@ -31,12 +31,18 @@ /** * @author Anas Nashif */ - +#ifdef HAVE_CONFIG_H #include +#endif + #include #include #include + +#ifdef HAVE_UNISTD_H #include +#endif + #include "u/libu.h" #include "wsman-client-api.h" diff --git a/src/wsman.c b/src/wsman.c index 0aab838..b7ced16 100644 --- a/src/wsman.c +++ b/src/wsman.c @@ -33,13 +33,18 @@ * @author Eugene Yarmosh * @author Vadim Revyakin */ - +#ifdef HAVE_CONFIG_H #include "config.h" +#endif #include #include #include + +#ifdef HAVE_UNISTD_H #include +#endif + #include #include @@ -108,6 +113,7 @@ int main(int argc, char** argv) char *enumContext; WsXmlDocH rqstDoc; actionOptions options; + WsXmlDocH enum_response; char *enumeration_mode, *binding_enumeration_mode, *resource_uri_with_selectors; char *resource_uri = NULL; @@ -259,7 +265,7 @@ int main(int argc, char** argv) } break; case WSMAN_ACTION_ENUMERATION: - + enumeration_mode = wsman_options_get_enum_mode(); binding_enumeration_mode = wsman_options_get_binding_enum_mode(); @@ -289,7 +295,7 @@ int main(int argc, char** argv) wsman_set_action_option(&options, FLAG_ENUMERATION_COUNT_ESTIMATION); } - WsXmlDocH enum_response = wsenum_enumerate(cl, + enum_response = wsenum_enumerate(cl, resource_uri, options); if (enum_response) { if (wsman_get_client_response_code(cl) == 200 || -- cgit