summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-01-16 15:26:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-01-16 15:26:43 +0900
commit1cc7602b43337d1f5d24415ef471bb39e6567b34 (patch)
tree29c01651adff35b0762ab0b7171b84e0f48fa1c7 /tdm
parent623738e42c5878f7eccf86d5731efd038a5a775e (diff)
downloadtdebase-drop/hpux-support.tar.gz
tdebase-drop/hpux-support.zip
Remove support for HPUX, which is discontinued and does not provide a c++17 complaint compiler.drop/hpux-support
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdm')
-rw-r--r--tdm/backend/auth.c15
-rw-r--r--tdm/backend/choose.c2
-rw-r--r--tdm/backend/netaddr.c2
-rw-r--r--tdm/backend/util.c4
-rw-r--r--tdm/kfrontend/kconsole.cpp8
5 files changed, 6 insertions, 25 deletions
diff --git a/tdm/backend/auth.c b/tdm/backend/auth.c
index 9698816ad..6673c008d 100644
--- a/tdm/backend/auth.c
+++ b/tdm/backend/auth.c
@@ -52,7 +52,7 @@ from the copyright holder.
# include <netdnet/dnetdb.h>
#endif
-#if (defined(_POSIX_SOURCE) && !defined(_AIX) && !defined(__QNX__)) || defined(__hpux) || defined(__svr4__) /* XXX */
+#if (defined(_POSIX_SOURCE) && !defined(_AIX) && !defined(__QNX__)) || defined(__svr4__)
# define NEED_UTSNAME
# include <sys/utsname.h>
#endif
@@ -515,7 +515,7 @@ writeAddr( int family, int addr_length, char *addr,
static void
DefineLocal( FILE *file, Xauth *auth, int *ok )
{
-#if !defined(NEED_UTSNAME) || defined(__hpux)
+#if !defined(NEED_UTSNAME)
char displayname[100];
#endif
#ifdef NEED_UTSNAME
@@ -534,7 +534,7 @@ DefineLocal( FILE *file, Xauth *auth, int *ok )
#ifdef NEED_UTSNAME
- /* hpux:
+ /*
* Why not use gethostname()? Well, at least on my system, I've had to
* make an ugly kernel patch to get a name longer than 8 characters, and
* uname() lets me access to the whole string (it smashes release, you
@@ -545,17 +545,12 @@ DefineLocal( FILE *file, Xauth *auth, int *ok )
file, auth, ok );
#endif
-#if !defined(NEED_UTSNAME) || defined(__hpux)
+#if !defined(NEED_UTSNAME)
/* _AIX:
* In _AIX, _POSIX_SOURCE is defined, but uname gives only first
* field of hostname. Thus, we use gethostname instead.
*/
- /*
- * For HP-UX, HP's Xlib expects a fully-qualified domain name, which
- * is achieved by using gethostname(). For compatability, we must
- * also still create the entry using uname() above.
- */
displayname[0] = 0;
if (!gethostname( displayname, sizeof(displayname) ))
displayname[sizeof(displayname) - 1] = 0;
@@ -934,7 +929,7 @@ DefineSelf( int fd, int file, int auth, int *ok )
struct sockaddr_in *inetaddr;
- /* hpux:
+ /*
* Why not use gethostname()? Well, at least on my system, I've had to
* make an ugly kernel patch to get a name longer than 8 characters, and
* uname() lets me access to the whole string (it smashes release, you
diff --git a/tdm/backend/choose.c b/tdm/backend/choose.c
index e66249862..bd6788590 100644
--- a/tdm/backend/choose.c
+++ b/tdm/backend/choose.c
@@ -60,7 +60,7 @@ from the copyright holder.
# include <netdir.h>
#endif
-#if !defined(__GNU__) && !defined(__hpux) /* XXX __hpux might be wrong */
+#if !defined(__GNU__)
# include <net/if.h>
#endif
diff --git a/tdm/backend/netaddr.c b/tdm/backend/netaddr.c
index 349a53528..8a7dc0ebf 100644
--- a/tdm/backend/netaddr.c
+++ b/tdm/backend/netaddr.c
@@ -156,12 +156,10 @@ ConvertAddr( char *saddr, int *len, char **addr )
break;
#endif
#ifdef AF_UNIX
-#ifndef __hpux
case AF_UNIX:
retval = FamilyLocal;
break;
#endif
-#endif
#ifdef TCPCONN
case AF_INET:
retval = FamilyInternet;
diff --git a/tdm/backend/util.c b/tdm/backend/util.c
index 4290c6db6..a1e01be62 100644
--- a/tdm/backend/util.c
+++ b/tdm/backend/util.c
@@ -44,10 +44,6 @@ from the copyright holder.
#include <sys/types.h>
#include <sys/stat.h>
-#if 0 /*def USG; this was hpux once upon a time */
-# define NEED_UTSNAME
-#endif
-
#ifdef NEED_UTSNAME
# include <sys/utsname.h>
#endif
diff --git a/tdm/kfrontend/kconsole.cpp b/tdm/kfrontend/kconsole.cpp
index e885b3b5a..b22c3e31f 100644
--- a/tdm/kfrontend/kconsole.cpp
+++ b/tdm/kfrontend/kconsole.cpp
@@ -33,8 +33,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <sys/ioctl.h>
#ifdef HAVE_TERMIOS_H
-/* for HP-UX (some versions) the extern C is needed, and for other
- platforms it doesn't hurt */
extern "C" {
#include <termios.h>
}
@@ -44,12 +42,6 @@ extern "C" {
#include <termio.h>
#endif
-#if defined (_HPUX_SOURCE)
-#define _TERMIOS_INCLUDED
-#include <bsdtty.h>
-#endif
-
-
#include "kconsole.h"
#include "tdmconfig.h"
#include "tdm_greet.h"