Remove more HOST_PLATFORM_SUNOS cruft.

This commit is contained in:
Augustin Cavalier
2018-11-23 16:29:57 -05:00
parent 807304b100
commit d113c00b5a
6 changed files with 22 additions and 50 deletions
+1 -5
View File
@@ -503,12 +503,8 @@ if $(HOST_PLATFORM_HAIKU_COMPATIBLE) {
HOST_NETWORK_LIBS = network ;
HOST_NETAPI_LIB = bnetapi ;
HOST_SELECT_UNAME_ETC_LIB = ; # libroot
} else if $(HOST_PLATFORM) = "sunos" {
HOST_NETWORK_LIBS = xnet ;
HOST_NETAPI_LIB = ;
HOST_SELECT_UNAME_ETC_LIB = ;
} else {
# Linux,...
# Linux, ...
HOST_NETWORK_LIBS = ;
HOST_NETAPI_LIB = ;
HOST_SELECT_UNAME_ETC_LIB = ;
-6
View File
@@ -29,14 +29,8 @@ 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
-4
View File
@@ -19,12 +19,8 @@
#include "Keymap.h"
#ifdef HAIKU_HOST_PLATFORM_SUNOS
static const char *sProgramName = "keymap";
#else
extern char *__progname;
static const char *sProgramName = __progname;
#endif
static void
-4
View File
@@ -24,12 +24,8 @@
using namespace BPrivate::Storage::Mime;
#ifdef HAIKU_HOST_PLATFORM_SUNOS
static const char* sProgramName = "mimeset";
#else
extern const char* __progname;
static const char* sProgramName = __progname;
#endif
// options
bool gFiles = true;
-6
View File
@@ -29,16 +29,10 @@
#include "rdef.h"
#ifndef HAIKU_HOST_PLATFORM_SUNOS
extern const char *__progname;
#endif
static const char *kTitle = "Haiku Resource Compiler 1.1";
#ifdef HAIKU_HOST_PLATFORM_SUNOS
static const char *kProgramName = "rc";
#else
static const char *kProgramName = __progname;
#endif
static bool sQuiet = false;
-4
View File
@@ -15,13 +15,9 @@
#include <string.h>
#ifdef HAIKU_HOST_PLATFORM_SUNOS
const char *kProgramName = "setversion";
#else
extern const char *__progname;
const char *kProgramName = __progname;
#endif
enum arg_needed {