From f4d7d83ecd783447f047766243c2fceacbdf205c Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 14 Oct 1996 19:14:53 +0000 Subject: [PATCH] More #ifdefs for include files. Declarations for global variables. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@847 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/kx.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/appl/kx/kx.h b/appl/kx/kx.h index 11dfaed35..14ef9d3ad 100644 --- a/appl/kx/kx.h +++ b/appl/kx/kx.h @@ -7,10 +7,14 @@ #include #include #include -#include -#include -#include #include +#include +#ifdef HAVE_UNISTD_H +#include +#endif +#ifdef HAVE_PWD_H +#include +#endif #ifdef HAVE_SYSLOG_H #include #endif @@ -38,6 +42,9 @@ #ifdef HAVE_NETINET_IN_H #include #endif +#ifdef HAVE_NETINET_TCP_H +#include +#endif #ifdef HAVE_ARPA_INET_H #include #endif @@ -61,8 +68,15 @@ int copy_encrypted (int fd1, int fd2, des_cblock *iv, des_key_schedule schedule); extern char x_socket[]; +extern u_int32_t display_num; +extern char xauthfile[]; +extern int xauthfile_size; +extern u_char cookie[]; +extern size_t cookie_len; int get_xsockets (int *unix_socket, int *tcp_socket); int connect_local_xsocket (unsigned dnr); #define KX_PORT 2111 + +#define COOKIE_TYPE "MIT-MAGIC-COOKIE-1"