2016-04-04 12:58:38 +02:00
|
|
|
Index: whois-5.2.12/mkpasswd.c
|
|
|
|
===================================================================
|
|
|
|
--- whois-5.2.12.orig/mkpasswd.c
|
|
|
|
+++ whois-5.2.12/mkpasswd.c
|
|
|
|
@@ -17,10 +17,7 @@
|
2014-12-08 09:15:47 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* for crypt, snprintf and strcasecmp */
|
|
|
|
-#define _XOPEN_SOURCE 500
|
|
|
|
-#define _BSD_SOURCE 1
|
2016-04-04 12:58:38 +02:00
|
|
|
#define _DEFAULT_SOURCE 1
|
2014-12-08 09:15:47 +01:00
|
|
|
-#define __EXTENSIONS__ 1
|
|
|
|
|
|
|
|
/* System library */
|
|
|
|
#include <stdio.h>
|
2016-04-04 12:58:38 +02:00
|
|
|
Index: whois-5.2.12/whois.c
|
|
|
|
===================================================================
|
|
|
|
--- whois-5.2.12.orig/whois.c
|
|
|
|
+++ whois-5.2.12/whois.c
|
2014-12-08 09:15:47 +01:00
|
|
|
@@ -7,9 +7,6 @@
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
-/* for AI_IDN */
|
|
|
|
-#define _GNU_SOURCE
|
|
|
|
-
|
|
|
|
/* System library */
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2016-04-04 12:58:38 +02:00
|
|
|
Index: whois-5.2.12/Makefile
|
|
|
|
===================================================================
|
|
|
|
--- whois-5.2.12.orig/Makefile
|
|
|
|
+++ whois-5.2.12/Makefile
|
2014-12-08 09:15:47 +01:00
|
|
|
@@ -53,7 +53,7 @@ endif
|
|
|
|
mkpasswd_LDADD += -lcrypt
|
|
|
|
endif
|
|
|
|
|
|
|
|
-CPPFLAGS += $(DEFS) $(INCLUDES)
|
|
|
|
+CPPFLAGS += -D_GNU_SOURCE $(DEFS) $(INCLUDES)
|
|
|
|
|
|
|
|
##############################################################################
|
|
|
|
all: Makefile.depend whois mkpasswd pos
|