2023-07-29 08:41:45 +00:00
|
|
|
Index: whois-5.5.18/mkpasswd.c
|
2016-04-04 10:58:38 +00:00
|
|
|
===================================================================
|
2023-07-29 08:41:45 +00:00
|
|
|
--- whois-5.5.18.orig/mkpasswd.c
|
|
|
|
+++ whois-5.5.18/mkpasswd.c
|
|
|
|
@@ -19,10 +19,7 @@
|
2014-12-08 08:15:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* for crypt, snprintf and strcasecmp */
|
|
|
|
-#define _XOPEN_SOURCE 500
|
|
|
|
-#define _BSD_SOURCE 1
|
2016-04-04 10:58:38 +00:00
|
|
|
#define _DEFAULT_SOURCE 1
|
2014-12-08 08:15:47 +00:00
|
|
|
-#define __EXTENSIONS__ 1
|
|
|
|
|
|
|
|
/* System library */
|
|
|
|
#include <stdio.h>
|
2023-07-29 08:41:45 +00:00
|
|
|
Index: whois-5.5.18/whois.c
|
2016-04-04 10:58:38 +00:00
|
|
|
===================================================================
|
2023-07-29 08:41:45 +00:00
|
|
|
--- whois-5.5.18.orig/whois.c
|
|
|
|
+++ whois-5.5.18/whois.c
|
|
|
|
@@ -9,9 +9,6 @@
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2014-12-08 08:15:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
-/* for AI_IDN */
|
|
|
|
-#define _GNU_SOURCE
|
|
|
|
-
|
|
|
|
/* System library */
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2023-07-29 08:41:45 +00:00
|
|
|
Index: whois-5.5.18/Makefile
|
2016-04-04 10:58:38 +00:00
|
|
|
===================================================================
|
2023-07-29 08:41:45 +00:00
|
|
|
--- whois-5.5.18.orig/Makefile
|
|
|
|
+++ whois-5.5.18/Makefile
|
|
|
|
@@ -70,7 +70,7 @@ else
|
2014-12-08 08:15:47 +00:00
|
|
|
mkpasswd_LDADD += -lcrypt
|
|
|
|
endif
|
|
|
|
|
|
|
|
-CPPFLAGS += $(DEFS) $(INCLUDES)
|
|
|
|
+CPPFLAGS += -D_GNU_SOURCE $(DEFS) $(INCLUDES)
|
|
|
|
|
2023-03-13 13:56:19 +00:00
|
|
|
BASHCOMPDIR ?= $(shell $(PKG_CONFIG) --variable=completionsdir bash-completion 2>/dev/null || echo /etc/bash_completion.d)
|
|
|
|
|