Patch by Andreas Faerber to work around the missing
definition of __progname on Solaris. Thanks, closes ticket #5697. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36783 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,8 +29,14 @@ static struct option const kLongOptions[] = {
|
||||
};
|
||||
|
||||
|
||||
#ifndef HAIKU_HOST_PLATFORM_SUNOS
|
||||
extern const char *__progname;
|
||||
#endif
|
||||
#ifdef HAIKU_HOST_PLATFORM_SUNOS
|
||||
static const char *kProgramName = "addattr";
|
||||
#else
|
||||
static const char *kProgramName = __progname;
|
||||
#endif
|
||||
|
||||
|
||||
// supported types (if you add any, make sure that writeAttr() handles
|
||||
|
||||
Reference in New Issue
Block a user