mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-11 05:14:40 +00:00
commit
a45fbd9cae
2 changed files with 1 additions and 5 deletions
4
src/3rdparty/getopt/getopt.h
vendored
4
src/3rdparty/getopt/getopt.h
vendored
|
@ -109,11 +109,7 @@ char *optarg; /* argument associated with option */
|
||||||
extern char __declspec(dllimport) *__progname;
|
extern char __declspec(dllimport) *__progname;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __CYGWIN__
|
|
||||||
static char EMSG[] = "";
|
static char EMSG[] = "";
|
||||||
#else
|
|
||||||
#define EMSG ""
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int getopt_internal(int, char * const *, const char *,
|
static int getopt_internal(int, char * const *, const char *,
|
||||||
const struct option *, int *, int);
|
const struct option *, int *, int);
|
||||||
|
|
|
@ -152,7 +152,7 @@ xmrig::String xmrig::Process::exepath()
|
||||||
{
|
{
|
||||||
size_t size = sizeof(pathBuf);
|
size_t size = sizeof(pathBuf);
|
||||||
|
|
||||||
return uv_exepath(pathBuf, &size) < 0 ? "" : String(pathBuf, size);
|
return uv_exepath(pathBuf, &size) < 0 ? String("") : String(pathBuf, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue