mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-26 15:35:55 +00:00
Tiny fix (pdb windows) (#7905)
This commit is contained in:
parent
64794df907
commit
68cb26566e
@ -5,12 +5,20 @@
|
||||
#include <r_core.h>
|
||||
|
||||
static int checkPrograms () {
|
||||
// TODO > /dev/null is not portable
|
||||
#if __WINDOWS__ && !__CYGWIN__
|
||||
char nul[] = "nul";
|
||||
if (r_sys_cmd ("expand >nul") != 0) {
|
||||
eprintf ("Missing expand\n");
|
||||
return 0;
|
||||
}
|
||||
#else
|
||||
char nul[] = "/dev/null";
|
||||
if (r_sys_cmd ("cabextract -v > /dev/null") != 0) {
|
||||
eprintf ("Missing cabextract\n");
|
||||
return 0;
|
||||
}
|
||||
if (r_sys_cmd ("curl --version > /dev/null") != 0) {
|
||||
#endif
|
||||
if (r_sys_cmdf ("curl --version >%s", nul) != 0) {
|
||||
eprintf ("Missing curl\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user