summaryrefslogtreecommitdiff
path: root/mkpasswd.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2016-03-28 18:37:43 +0200
committerMarco d'Itri <md@linux.it>2016-03-28 18:37:43 +0200
commit3b38b4fd1daa1bab0c7f7343ae8f0231a170de9c (patch)
treed247e2862451719b1665b8aa50f62260d9e484c6 /mkpasswd.c
parent9f747a880e538457f80c237d80c3ab675c5b9a66 (diff)
downloadwhois-3b38b4fd1daa1bab0c7f7343ae8f0231a170de9c.tar.gz
mkpasswd: define _DEFAULT_SOURCE
Since glibc 2.20 it replaces the deprecated _BSD_SOURCE macro.
Diffstat (limited to 'mkpasswd.c')
-rw-r--r--mkpasswd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkpasswd.c b/mkpasswd.c
index ce0c763..30c2423 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -19,6 +19,7 @@
/* for crypt, snprintf and strcasecmp */
#define _XOPEN_SOURCE 500
#define _BSD_SOURCE 1
+#define _DEFAULT_SOURCE 1
#define __EXTENSIONS__ 1
/* System library */