Simplify CFLAGS handling in configure and expose crypt() on NetBSD
[ircu2.10.12-pk.git] / ircd / ircd_crypt_native.c
index e3a8fbe31297e83a50079c455c542f3e424f2782..fe267c5b19866ab0127ec9d514049268d62565e2 100644 (file)
  * @version $Id$
  * 
  * Routines for handling passwords encrypted with the system's native crypt()
- * function (typicaly a DES encryption routine, but can be anything nowdays).
+ * function (typically a DES encryption routine, but can be anything nowadays).
  * 
  */
-#define _XOPEN_SOURCE
-#define _XOPEN_VERSION 4
+#define _XOPEN_SOURCE 600
 
 #include "config.h"
 #include "ircd_crypt.h"
 #include "ircd_crypt_native.h"
+#include "ircd_log.h"
 #include "s_debug.h"
 #include "ircd_alloc.h"
 
-#include <assert.h>
+/* #include <assert.h> -- Now using assert in ircd_log.h */
 #include <unistd.h>
 #ifdef HAVE_CRYPT_H
 #include <crypt.h>