The file has no inclusion guards, and contains typedefs that
cause errors when included multiple times with older (pre-C11)
compilers such as gcc 4.4.
Save the "#ifdef DOS" content to crypt-private.h even though
it's likely not particularly useful.
+2014-06-06 Chris Metcalf <cmetcalf@tilera.com>
+
+ * crypt/crypt-private.h [DOS]: Add some includes taken from the
+ other files in the crypt directory.
+ * crypt/crypt.c: Remove duplicate includes.
+ * crypt/crypt-entry.c: Likewise.
+ * crypt/crypt_util.c: Likewise.
+
2014-06-06 Joseph Myers <joseph@codesourcery.com>
* Makeconfig (run-program-env): New variable.
#define STATIC static
#endif
-#ifndef DOS
-#include "ufc-crypt.h"
-#else
-/*
- * Thanks to greg%wind@plains.NoDak.edu (Greg W. Wettstein)
- * for DOS patches
- */
-#include "ufc.h"
-#endif
-#include "crypt.h"
#include "crypt-private.h"
/* Prototypes for local functions. */
#include <features.h>
#include <stdbool.h>
+#ifndef DOS
#include "ufc-crypt.h"
+#else
+/*
+ * Thanks to greg%wind@plains.NoDak.edu (Greg W. Wettstein)
+ * for DOS patches
+ */
+#include "pl.h"
+#include "ufc.h"
+#endif
#include "crypt.h"
/* crypt.c */
*
*/
-#include "ufc-crypt.h"
-#include "crypt.h"
#include "crypt-private.h"
#ifdef _UFC_32_
#define STATIC static
#endif
-#ifndef DOS
-#include "ufc-crypt.h"
-#else
-/*
- * Thanks to greg%wind@plains.NoDak.edu (Greg W. Wettstein)
- * for DOS patches
- */
-#include "pl.h"
-#include "ufc.h"
-#endif
-#include "crypt.h"
#include "crypt-private.h"
/* Prototypes for local functions. */