Commit 7d7b0ad0 authored by Niels Möller's avatar Niels Möller

Add conditionals around #including unistd.h and crypt.h.

Rev: src/io.c:1.44
Rev: src/jpoll.c:1.4
Rev: src/lsh.c:1.38
Rev: src/lsh_keygen.c:1.8
Rev: src/lsh_writekey.c:1.2
Rev: src/lshd.c:1.32
Rev: src/password.h:1.10
Rev: src/publickey_crypto.c:1.22
Rev: src/randomness.c:1.12
Rev: src/server.c:1.39
Rev: src/server_password.c:1.12
Rev: src/sexp_test.c:1.4
Rev: src/werror.c:1.20
parent a6229073
......@@ -29,12 +29,18 @@
#include <assert.h>
#include <string.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_POLL
#include <poll.h>
# if HAVE_POLL_H
# include <poll.h>
# elif HAVE_SYS_POLL_H
# include <sys/poll.h>
# endif
#else
#include "jpoll.h"
# include "jpoll.h"
#endif
#include <errno.h>
......
......@@ -18,7 +18,10 @@
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
int poll(struct pollfd *fdlist, nfds_t count, int timeoutInMS)
{
......
......@@ -47,7 +47,9 @@
#include <stdlib.h>
#include <string.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "getopt.h"
......
......@@ -40,7 +40,9 @@
#include <stdio.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
static void usage(void) NORETURN;
......
......@@ -36,7 +36,10 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "lsh_writekey.c.x"
......
......@@ -57,7 +57,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
/* Block size for stdout and stderr buffers */
#define BLOCK_SIZE 32768
......
......@@ -32,7 +32,9 @@
#include "alist.h"
#include <sys/types.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#define CLASS_DECLARE
#include "password.h.x"
......
......@@ -463,6 +463,7 @@ void init_diffie_hellman_instance(struct diffie_hellman_method *m,
debug("init_diffie_hellman_instance()\n V_C: ");
/* FIXME: Length field should be included when hashing. */
debug_safe(c->client_version->length,
c->client_version->data);
HASH_UPDATE(self->hash,
......
......@@ -36,7 +36,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <time.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
......
......@@ -102,7 +102,9 @@
/* For debug */
#include <signal.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "server.c.x"
......
......@@ -34,7 +34,12 @@
#include <string.h>
#include <errno.h>
#include <crypt.h>
#if HAVE_UNISTD_H
# include <unistd.h>
#endif
#if HAVE_CRYPT_H
# include <crypt.h>
#endif
#include <pwd.h>
#include <grp.h>
......
......@@ -30,7 +30,9 @@
#include "werror.h"
#include "xalloc.h"
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include "sexp_test.c.x"
......
......@@ -33,7 +33,9 @@
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
int debug_flag = 0;
int quiet_flag = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment