Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git] / ircd / crypt / mkpasswd.c
index ee65d9b0a85021eb1503838902184a755cc81c55..dfe6305e48c49b180dbff1be96f25fb4b641bb99 100644 (file)
@@ -2,24 +2,14 @@
  * copyright 1991, all rights reserved.
  * You can use this code as long as my name stays with it.
  */
-
+#define _XOPEN_SOURCE
+#define _XOPEN_VERSION 4
+#define _XOPEN_SOURCE_EXTENDED
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 #include <time.h>
-#if HAVE_UNISTD_H
 #include <unistd.h>
-#endif
-#include "../../config/setup.h"
-#if STDC_HEADERS
-# include <string.h>
-#else
-# ifndef HAVE_STRCHR
-#  define strchr index
-# endif
-char *strchr();
-#endif
-
-extern char *getpass();
 
 int main(int argc, char *argv[])
 {