diff options
author | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2010-07-15 08:13:30 -0300 |
---|---|---|
committer | Davi Arnaut <Davi.Arnaut@Sun.COM> | 2010-07-15 08:13:30 -0300 |
commit | 61ef7b5214bda220e918ab7d1b8549665a650a3d (patch) | |
tree | 2c9b96009bfea8eef82d21e14a61f7306827f917 /libmysql/libmysql.c | |
parent | 090583ad2f3ae9acf11acbe3f66900cfd9de1947 (diff) | |
download | mariadb-git-61ef7b5214bda220e918ab7d1b8549665a650a3d.tar.gz |
WL#5486: Remove code for unsupported platforms
Remove Netware specific code.
Diffstat (limited to 'libmysql/libmysql.c')
-rw-r--r-- | libmysql/libmysql.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index b69c27731dd..68813937fb6 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -165,7 +165,7 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)), mysql_unix_port = env; } mysql_debug(NullS); -#if defined(SIGPIPE) && !defined(__WIN__) && !defined(__NETWARE__) +#if defined(SIGPIPE) && !defined(__WIN__) (void) signal(SIGPIPE, SIG_IGN); #endif #ifdef EMBEDDED_LIBRARY @@ -479,15 +479,7 @@ struct passwd *getpwuid(uid_t); char* getlogin(void); #endif -#if defined(__NETWARE__) -/* Default to value of USER on NetWare, if unset use "UNKNOWN_USER" */ -void read_user_name(char *name) -{ - char *str=getenv("USER"); - strmake(name, str ? str : "UNKNOWN_USER", USERNAME_LENGTH); -} - -#elif !defined(MSDOS) && ! defined(VMS) && !defined(__WIN__) +#if !defined(MSDOS) && ! defined(VMS) && !defined(__WIN__) void read_user_name(char *name) { |