Remove support for OSF

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 50da923762)
r14.1.x
Michele Calgaro 12 months ago
parent 3bf388a077
commit 3f993bfb28
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -99,35 +99,3 @@ if test -z "$LIBPTHREAD" && test -z "$USE_THREADS"; then
DO_NOT_COMPILE="$DO_NOT_COMPILE kdict krfb krdc"
fi
CXXFLAGS="$CXXFLAGS $KDE_DEFAULT_CXXFLAGS"
AH_VERBATIM(_osf_config_h,
[
#ifdef __osf__
/* From Tom Leitner */
#if __STDC__
#include <stdarg.h>
#include <stdlib.h>
#else
#include <varargs.h>
#endif
#ifndef __OSF_INCLUDED__
#define __OSF_INCLUDED__
#define MSG_NOSIGNAL 0
#ifndef AF_LOCAL
#define AF_LOCAL 1 /* is the same as AF_UNIX */
#endif
#ifndef herror
#define herror(a) printf(a)
#endif
#include <sys/types.h>
#ifdef __cplusplus
extern "C" int sethostname (char *name, int name_len );
extern "C" int flock(int filedes, int operation );
#else
int sethostname (char *name, int name_len );
int flock(int filedes, int operation );
#endif
#endif
#endif
])

@ -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 <net/if_ppp.h> /* BSD, NeXT, etc. */
#endif
#else /* SunOS 4, AIX 4, OSF/1, etc. */
#else /* SunOS 4, AIX 4, etc. */
#include <sys/stream.h>
#include <net/ppp_str.h>
#endif

@ -36,14 +36,12 @@
#include <config.h>
#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"

@ -94,7 +94,7 @@
#else /* STREAMS */
#include <sys/socket.h>
#include <sys/stropts.h> /* SVR4, Solaris 2, SunOS 4, OSF/1, etc. */
#include <sys/stropts.h> /* SVR4, Solaris 2, SunOS 4, etc. */
#include <net/ppp_defs.h>
#include <net/pppio.h>
#include <net/if.h>

@ -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 <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@ -44,11 +39,6 @@
#include <errno.h>
#include <string.h>
#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);

@ -933,10 +933,6 @@ void RFBController::sendSessionEstablished()
emit sessionEstablished(remoteIp);
}
#ifdef __osf__
extern "C" Bool XShmQueryExtension(Display*);
#endif
bool RFBController::checkX11Capabilities() {
int bp1, bp2, majorv, minorv;
Bool r = XTestQueryExtension(tqt_xdisplay(), &bp1, &bp2,

@ -181,10 +181,6 @@ static char copyright[] =
#define USE_VSYSLOG 0
#endif
#if defined(__osf__)
#define USE_VSYSLOG 0
#endif
#if defined(NeXT)
#include <libc.h>
#define _PATH_MAILDIR "/usr/spool/mail"

@ -38,16 +38,6 @@
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#ifdef __osf__
#undef BYTE_ORDER
#define _OSF_SOURCE
#undef _MACHINE_ENDIAN_H_
#undef __STDC__
#define __STDC__ 0
#include <netinet/ip.h>
#undef __STDC__
#define __STDC__ 1
#endif
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>

Loading…
Cancel
Save