From d293cd2cf01d0ddd2ded6a416d14be7c492e2ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 10 May 2010 14:38:10 +0000 Subject: [PATCH] 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 --- src/bin/addattr/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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