X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/40d0f6b94fa9d2f362c3bc4b6d73555287e3d1b6..6367063f5f9df10d9c7d11977daf6694cad956e7:/defines.h diff --git a/defines.h b/defines.h index 90fd3333..2292b4f9 100644 --- a/defines.h +++ b/defines.h @@ -45,6 +45,7 @@ #include /* For STDIN_FILENO, etc */ #include /* Struct winsize */ #include /* For O_NONBLOCK */ +#include /* For OPENSSL_VERSION_NUMBER */ /* *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively */ #ifdef HAVE_STRINGS_H @@ -355,6 +356,16 @@ struct winsize { #define _PATH_XAUTH XAUTH_PATH #endif /* XAUTH_PATH */ +/* derived from XF4/xc/lib/dps/Xlibnet.h */ +#ifndef X_UNIX_PATH +# ifdef __hpux +# define X_UNIX_PATH "/var/spool/sockets/X11/%u" +# else +# define X_UNIX_PATH "/tmp/.X11-unix/X%u" +# endif +#endif /* X_UNIX_PATH */ +#define _PATH_UNIX_X X_UNIX_PATH + #ifndef _PATH_TTY # define _PATH_TTY "/dev/tty" #endif @@ -450,6 +461,11 @@ struct winsize { # define getpgrp() getpgrp(0) #endif +/* OPENSSL_free() is Free() in versions before OpenSSL 0.9.6 */ +#if !defined(OPENSSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x0090600f) +# define OPENSSL_free(x) Free(x) +#endif + /* * Define this to use pipes instead of socketpairs for communicating with the * client program. Socketpairs do not seem to work on all systems.