Merge "getprogname is not defined in glibc"
This commit is contained in:
commit
36840b0a66
2 changed files with 10 additions and 0 deletions
|
@ -34,6 +34,10 @@
|
|||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#ifdef USE_GLIB
|
||||
const char* getprogname();
|
||||
#endif /* USE_GLIB */
|
||||
|
||||
pid_t platform_lib_abstraction_gettid();
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -30,6 +30,12 @@
|
|||
|
||||
#ifdef USE_GLIB
|
||||
#include <loc_stub_gettid.h>
|
||||
|
||||
#include <errno.h>
|
||||
const char* getprogname() {
|
||||
return program_invocation_short_name;
|
||||
}
|
||||
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif /* USE_GLIB */
|
||||
|
|
Loading…
Reference in a new issue