diff --git a/src/bin/addattr/main.cpp b/src/bin/addattr/main.cpp index 2f439c1daa..a207917c8e 100644 --- a/src/bin/addattr/main.cpp +++ b/src/bin/addattr/main.cpp @@ -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