summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2006-12-02 23:23:43 +0000
committerAnas Nashif <nashif@intel.com>2006-12-02 23:23:43 +0000
commit86761380984465fa0d995f2b6bf92d520fe1b12f (patch)
treef185120aee96ec1cad08e1d24b96914996dcf2d7 /src
parent45f94492dd9d84836627eefb77ee2332e6e380d4 (diff)
downloadwsmancli-86761380984465fa0d995f2b6bf92d520fe1b12f.tar.gz
wsmancli-86761380984465fa0d995f2b6bf92d520fe1b12f.tar.xz
wsmancli-86761380984465fa0d995f2b6bf92d520fe1b12f.zip
make client compile on windows
Diffstat (limited to 'src')
-rw-r--r--src/wsman-client-options.c8
-rw-r--r--src/wsman.c12
2 files changed, 16 insertions, 4 deletions
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 <config.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#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 <stdio.h>
#include <stdlib.h>
#include <string.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
+
#include <errno.h>
#include <time.h>
@@ -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 ||