From 50da92376284f30d95e18960d2b24c49901fb10d Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 12 Jan 2025 15:16:10 +0900 Subject: Remove support for OSF Signed-off-by: Michele Calgaro --- kppp/configure.in.in | 4 ++-- kppp/opener.cpp | 4 +--- kppp/pppstats.cpp | 2 +- kppp/requester.cpp | 10 ---------- 4 files changed, 4 insertions(+), 16 deletions(-) (limited to 'kppp') diff --git a/kppp/configure.in.in b/kppp/configure.in.in index 720680c2..84e66210 100644 --- a/kppp/configure.in.in +++ b/kppp/configure.in.in @@ -5,7 +5,7 @@ AC_MSG_CHECKING(if kppp's headers are installed) AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_TRY_LINK([ -#if defined(__osf__) || defined(__svr4__) +#if defined(__svr4__) #define _POSIX_PII_SOCKET extern "C" int sethostname(char *name, int name_len); #endif @@ -40,7 +40,7 @@ AC_TRY_LINK([ #include /* BSD, NeXT, etc. */ #endif - #else /* SunOS 4, AIX 4, OSF/1, etc. */ + #else /* SunOS 4, AIX 4, etc. */ #include #include #endif diff --git a/kppp/opener.cpp b/kppp/opener.cpp index 7628681b..091a9814 100644 --- a/kppp/opener.cpp +++ b/kppp/opener.cpp @@ -36,14 +36,12 @@ #include -#if defined(__osf__) || defined(__svr4__) +#if defined(__svr4__) #define _POSIX_PII_SOCKET extern "C" int sethostname(char *name, int name_len); -#if !defined(__osf__) extern "C" int _Psendmsg(int, void*, int); extern "C" int _Precvmsg(int, void*, int); #endif -#endif #include "kpppconfig.h" diff --git a/kppp/pppstats.cpp b/kppp/pppstats.cpp index aedd63bf..0247fb58 100644 --- a/kppp/pppstats.cpp +++ b/kppp/pppstats.cpp @@ -94,7 +94,7 @@ #else /* STREAMS */ #include - #include /* SVR4, Solaris 2, SunOS 4, OSF/1, etc. */ + #include /* SVR4, Solaris 2, SunOS 4, etc. */ #include #include #include diff --git a/kppp/requester.cpp b/kppp/requester.cpp index 016d72fa..04ddea22 100644 --- a/kppp/requester.cpp +++ b/kppp/requester.cpp @@ -26,11 +26,6 @@ * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#ifdef __osf__ -#define _XOPEN_SOURCE_EXTENDED 1 -#endif - - #include #include #include @@ -44,11 +39,6 @@ #include #include -#ifdef __osf__ -#undef accept -extern "C" unsigned int alarm(unsigned int); -#endif - #ifdef _XPG4_2 extern "C" { ssize_t sendmsg(int, const struct msghdr *, int); -- cgit v1.2.1