- (djm) [openbsd-compat/basename.c openbsd-compat/bsd-closefrom.c]

[openbsd-compat/bsd-cray.c openbsd-compat/bsd-openpty.c]
   [openbsd-compat/bsd-snprintf.c openbsd-compat/fake-rfc2553.c]
   [openbsd-compat/port-aix.c openbsd-compat/port-irix.c]
   [openbsd-compat/rresvport.c]
   These look to need string.h and/or unistd.h (based on a grep for function
   names)
This commit is contained in:
Damien Miller 2006-07-24 15:08:35 +10:00
parent ad5ecbf072
commit 62da44f064
10 changed files with 26 additions and 3 deletions

View File

@ -122,7 +122,14 @@
- (djm) [session.c] - (djm) [session.c]
fix compile error with -Werror -Wall: 'path' is only used in fix compile error with -Werror -Wall: 'path' is only used in
do_setup_env() if HAVE_LOGIN_CAP is not defined do_setup_env() if HAVE_LOGIN_CAP is not defined
- (djm) [openbsd-compat/basename.c openbsd-compat/bsd-closefrom.c]
[openbsd-compat/bsd-cray.c openbsd-compat/bsd-openpty.c]
[openbsd-compat/bsd-snprintf.c openbsd-compat/fake-rfc2553.c]
[openbsd-compat/port-aix.c openbsd-compat/port-irix.c]
[openbsd-compat/rresvport.c]
These look to need string.h and/or unistd.h (based on a grep for function
names)
20060713 20060713
- (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
@ -5040,4 +5047,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.4433 2006/07/24 05:03:06 djm Exp $ $Id: ChangeLog,v 1.4434 2006/07/24 05:08:35 djm Exp $

View File

@ -20,6 +20,7 @@
#include "includes.h" #include "includes.h"
#ifndef HAVE_BASENAME #ifndef HAVE_BASENAME
#include <string.h>
char * char *
basename(const char *path) basename(const char *path)

View File

@ -25,6 +25,8 @@
#include <limits.h> #include <limits.h>
#include <stdlib.h> #include <stdlib.h>
#include <stddef.h> #include <stddef.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_DIRENT_H #ifdef HAVE_DIRENT_H
# include <dirent.h> # include <dirent.h>
# define NAMLEN(dirent) strlen((dirent)->d_name) # define NAMLEN(dirent) strlen((dirent)->d_name)

View File

@ -1,5 +1,5 @@
/* /*
* $Id: bsd-cray.c,v 1.14 2005/02/02 06:10:11 dtucker Exp $ * $Id: bsd-cray.c,v 1.15 2006/07/24 05:08:36 djm Exp $
* *
* bsd-cray.c * bsd-cray.c
* *
@ -53,6 +53,8 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/session.h> #include <sys/session.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pwd.h> #include <pwd.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>

View File

@ -57,6 +57,8 @@
#endif #endif
#include <signal.h> #include <signal.h>
#include <string.h>
#include <unistd.h>
#ifndef O_NOCTTY #ifndef O_NOCTTY
#define O_NOCTTY 0 #define O_NOCTTY 0

View File

@ -108,6 +108,8 @@
#if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
#include <string.h>
#ifdef HAVE_LONG_DOUBLE #ifdef HAVE_LONG_DOUBLE
# define LDOUBLE long double # define LDOUBLE long double
#else #else

View File

@ -36,6 +36,7 @@
*/ */
#include "includes.h" #include "includes.h"
#include <string.h>
#ifndef HAVE_GETNAMEINFO #ifndef HAVE_GETNAMEINFO
int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,

View File

@ -38,6 +38,8 @@
# include <netdb.h> # include <netdb.h>
#endif #endif
#include <uinfo.h> #include <uinfo.h>
#include <string.h>
#include <unistd.h>
#include <sys/socket.h> #include <sys/socket.h>
#include "port-aix.h" #include "port-aix.h"

View File

@ -29,6 +29,9 @@
defined(WITH_IRIX_JOBS) || \ defined(WITH_IRIX_JOBS) || \
defined(WITH_IRIX_ARRAY) defined(WITH_IRIX_ARRAY)
#include <unistd.h>
#include <string.h>
#ifdef WITH_IRIX_PROJECT #ifdef WITH_IRIX_PROJECT
# include <proj.h> # include <proj.h>
#endif /* WITH_IRIX_PROJECT */ #endif /* WITH_IRIX_PROJECT */

View File

@ -36,6 +36,7 @@
#ifndef HAVE_RRESVPORT_AF #ifndef HAVE_RRESVPORT_AF
#include <errno.h> #include <errno.h>
#include <string.h>
#if 0 #if 0
int int