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:
Stephan Aßmus
2010-05-10 14:38:10 +00:00
parent 2376416a94
commit d293cd2cf0
+6
View File
@@ -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