Remove some things from confmagic.h

This commit is contained in:
Shawn Wagner 2016-09-12 18:47:19 -07:00
parent f6bcae26d8
commit 6895992a7d
5 changed files with 7 additions and 28 deletions

View file

@ -55,6 +55,8 @@
#undef HAVE_LANGINFO_H
#undef HAVE_CRYPT_H
/* C99ish headers. The first two are really really nice to have. */
#undef HAVE_STDINT_H

2
configure vendored
View file

@ -5500,7 +5500,7 @@ fi
done
for ac_header in poll.h sys/select.h sys/inotify.h langinfo.h
for ac_header in poll.h sys/select.h sys/inotify.h langinfo.h crypt.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

View file

@ -157,7 +157,7 @@ AC_HEADER_TIME
AC_CHECK_HEADERS([sys/stat.h sys/time.h sys/types.h])
AC_CHECK_HEADERS([sys/socket.h arpa/inet.h libintl.h netdb.h netinet/tcp.h netinet/in.h])
AC_CHECK_HEADERS([sys/un.h sys/resource.h sys/event.h sys/uio.h byteswap.h])
AC_CHECK_HEADERS([poll.h sys/select.h sys/inotify.h langinfo.h])
AC_CHECK_HEADERS([poll.h sys/select.h sys/inotify.h langinfo.h crypt.h])
AC_CHECK_HEADERS([zlib.h event2/event.h event2/dns.h fenv.h sys/param.h])
AC_CHECK_HEADERS([sys/ucred.h], [], [], [
AC_INCLUDES_DEFAULT

View file

@ -12,18 +12,6 @@
#ifndef _confmagic_h_
#define _confmagic_h_
/*
* (which isn't exportable from the U.S.), then don't encrypt
*/
#ifndef HAVE_CRYPT
#define crypt(s,t) (s)
#endif
#ifndef HAVE_STRCOLL
#undef strcoll
#define strcoll strcmp
#endif
#ifndef HAVE_SNPRINTF
#ifdef HAVE__VSNPRINTF_S
#define snprintf sane_snprintf_s
@ -45,10 +33,4 @@ int sane_snprintf_s(char *, size_t, const char *, ...);
#endif
#endif
#if defined(HAVE_POLLTS) && !defined(HAVE_PPOLL)
/* Linux's ppoll() is identical to NetBSD's pollts() in all but name. */
#define ppoll pollts
#define HAVE_PPOLL
#endif
#endif

View file

@ -26,6 +26,9 @@
#include <sys/types.h>
#endif
#include <fcntl.h>
#ifdef HAVE_CRYPT_H
#include <crypt.h>
#endif
#include "access.h"
#include "attrib.h"
@ -42,14 +45,6 @@
#include "parse.h"
#include "strutil.h"
#ifdef HAVE_CRYPT
#ifdef I_CRYPT
#include <crypt.h>
#else
extern char *crypt(const char *, const char *);
#endif
#endif
/* From mycrypt.c */
char *mush_crypt_sha0(const char *key);
char *password_hash(const char *key, const char *algo);