aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2006-01-01 19:54:02 (GMT)
committerJouni Malinen <j@w1.fi>2006-01-01 19:54:02 (GMT)
commit95e5f412c6db6809f8f6ee66834e01b6cda3e7b5 (patch)
tree8add1f7f0d3e5d33bcc7671daf1a0ed929949a12
parent5d6dcdc43da3500c8850fdf11f8faf3e91140b74 (diff)
downloadhostap-history-95e5f412c6db6809f8f6ee66834e01b6cda3e7b5.zip
hostap-history-95e5f412c6db6809f8f6ee66834e01b6cda3e7b5.tar.gz
hostap-history-95e5f412c6db6809f8f6ee66834e01b6cda3e7b5.tar.bz2
WinCE does not have system() or signal().
-rw-r--r--wpa_supplicant/wpa_cli.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_cli.c b/wpa_supplicant/wpa_cli.c
index a940e2c..9ca52f0 100644
--- a/wpa_supplicant/wpa_cli.c
+++ b/wpa_supplicant/wpa_cli.c
@@ -1,6 +1,6 @@
/*
* WPA Supplicant - command line interface for wpa_supplicant daemon
- * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
+ * Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
@@ -967,7 +967,9 @@ static int wpa_cli_exec(const char *program, const char *arg1,
if (cmd == NULL)
return -1;
snprintf(cmd, len, "%s %s %s", program, arg1, arg2);
+#ifndef _WIN32_WCE
system(cmd);
+#endif /* _WIN32_WCE */
free(cmd);
return 0;
@@ -1376,8 +1378,10 @@ int main(int argc, char *argv[])
continue;
}
+#ifndef _WIN32_WCE
signal(SIGINT, wpa_cli_terminate);
signal(SIGTERM, wpa_cli_terminate);
+#endif /* _WIN32_WCE */
#ifndef CONFIG_NATIVE_WINDOWS
signal(SIGALRM, wpa_cli_alarm);
#endif /* CONFIG_NATIVE_WINDOWS */