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
This commit is contained in:
20
appl/kx/kx.h
20
appl/kx/kx.h
@@ -7,10 +7,14 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <pwd.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_PWD_H
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYSLOG_H
|
||||
#include <syslog.h>
|
||||
#endif
|
||||
@@ -38,6 +42,9 @@
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
#ifdef HAVE_NETINET_TCP_H
|
||||
#include <netinet/tcp.h>
|
||||
#endif
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#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"
|
||||
|
Reference in New Issue
Block a user