-#if NEED_STRINGS_H
-#include <strings.h>
-#endif
-
-#if ! HAVE_REALPATH
-char *realpath(const char *path, char resolved_path []);
-#endif
-
-#if NEED_MYREALLOC
-#define realloc(ptr,size) myrealloc(ptr,size)
-extern void *myrealloc(void *, size_t);
-#endif
-
-#if ! HAVE_SETENV
-extern int setenv(const char *name, const char *value, int replace);
-extern void unsetenv(const char *name);
-#endif
-
-#if HAVE_SYS_SOCKET_H
-#include <sys/types.h>
-#ifndef __LCLINT__
-#include <sys/socket.h>
-#endif /* __LCLINT__ */
-#endif
-
-#if HAVE_SYS_SELECT_H
-#include <sys/select.h>
-#endif
-
-/* Solaris <= 2.6 limits getpass return to only 8 chars */
-#if HAVE_GETPASSPHRASE
-#define getpass getpassphrase
-#endif
-
-#if ! HAVE_LCHOWN
-#define lchown chown
-#endif
-
-#if HAVE_GETMNTINFO_R || HAVE_MNTCTL
-# define GETMNTENT_ONE 0
-# define GETMNTENT_TWO 0
-# if HAVE_SYS_MNTCTL_H
-# include <sys/mntctl.h>
-# endif
-# if HAVE_SYS_VMOUNT_H
-# include <sys/vmount.h>
-# endif
-# if HAVE_SYS_MOUNT_H
-# include <sys/mount.h>
-# endif
-#elif HAVE_MNTENT_H || !(HAVE_GETMNTENT) || HAVE_STRUCT_MNTTAB
-# if HAVE_MNTENT_H
-# include <stdio.h>
-# include <mntent.h>
-# define our_mntent struct mntent
-# define our_mntdir mnt_dir
-# elif HAVE_STRUCT_MNTTAB
-# include <stdio.h>
-# include <mnttab.h>
- struct our_mntent {
- char * our_mntdir;
- };
- struct our_mntent *getmntent(FILE *filep);
-# define our_mntent struct our_mntent
-# else
-# include <stdio.h>
- struct our_mntent {
- char * our_mntdir;
- };
- struct our_mntent *getmntent(FILE *filep);
-# define our_mntent struct our_mntent
-# endif
-# define GETMNTENT_ONE 1
-# define GETMNTENT_TWO 0
-#elif HAVE_SYS_MNTTAB_H
-# include <stdio.h>
-# include <sys/mnttab.h>
-# define GETMNTENT_ONE 0
-# define GETMNTENT_TWO 1
-# define our_mntent struct mnttab
-# define our_mntdir mnt_mountp
-#else /* if !HAVE_MNTCTL */
-# error Neither mntent.h, mnttab.h, or mntctl() exists. I cannot build on this system.
-#endif
-
-#ifndef MOUNTED
-#define MOUNTED "/etc/mnttab"
-#endif