summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog15
-rw-r--r--mkpasswd.c7
2 files changed, 21 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 4119c80..912a899 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -342,6 +342,21 @@ whois (5.1.2) unstable; urgency=medium
-- Marco d'Itri <md@linux.it> Fri, 02 May 2014 04:15:08 +0200
+whois (5.1.1+dyson1) unstable; urgency=medium
+
+ * Package for Dyson
+ * Patched mkpasswd.c:
+ - Define _XOPEN_SOURCE to 600 if not defined
+ - Define _BSD_SOURCE to 1 if not defined
+ - Define __EXTENSIONS__ to 1 to get getpass() exposed (otherwise
+ mkpasswd crashes, because compiler assumes getpass returns int)
+ - Removed #error "This code path is untested on Solaris.
+ Please send a patch."
+ - Fixed perror() invocation in HAVE_SOLARIS_CRYPT_GENSALT branch
+ * Patched make_version_h.pl to support +dysonN suffix in version
+
+ -- Igor Pashev <pashev.igor@gmail.com> Fri, 04 Apr 2014 14:27:20 +0400
+
whois (5.1.1) unstable; urgency=medium
* Added the servers for 29 "new" gTLDs.
diff --git a/mkpasswd.c b/mkpasswd.c
index d32391e..002bb42 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -17,10 +17,15 @@
*/
/* for crypt, snprintf and strcasecmp */
+#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 500
+#endif
+#ifndef _BSD_SOURCE
#define _BSD_SOURCE 1
-#define _DEFAULT_SOURCE 1
+#endif
+#ifndef __EXTENSIONS__
#define __EXTENSIONS__ 1
+#endif
/* System library */
#include <stdio.h>