forked from pool/whois
Marcus Meissner
49e21577d2
- whois-nobsdsource.patch: get rid of warnings about BSD_SOURCE deprecatation , just define GNU_SOURCE globally instead of any other C library feature macro. OBS-URL: https://build.opensuse.org/request/show/264260 OBS-URL: https://build.opensuse.org/package/show/network:utilities/whois?expand=0&rev=49
36 lines
784 B
Diff
36 lines
784 B
Diff
--- whois-5.2.2.orig/mkpasswd.c
|
|
+++ whois-5.2.2/mkpasswd.c
|
|
@@ -17,9 +17,6 @@
|
|
*/
|
|
|
|
/* for crypt, snprintf and strcasecmp */
|
|
-#define _XOPEN_SOURCE 500
|
|
-#define _BSD_SOURCE 1
|
|
-#define __EXTENSIONS__ 1
|
|
|
|
/* System library */
|
|
#include <stdio.h>
|
|
--- whois-5.2.2.orig/whois.c
|
|
+++ whois-5.2.2/whois.c
|
|
@@ -7,9 +7,6 @@
|
|
* (at your option) any later version.
|
|
*/
|
|
|
|
-/* for AI_IDN */
|
|
-#define _GNU_SOURCE
|
|
-
|
|
/* System library */
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
--- whois-5.2.2.orig/Makefile
|
|
+++ whois-5.2.2/Makefile
|
|
@@ -53,7 +53,7 @@ endif
|
|
mkpasswd_LDADD += -lcrypt
|
|
endif
|
|
|
|
-CPPFLAGS += $(DEFS) $(INCLUDES)
|
|
+CPPFLAGS += -D_GNU_SOURCE $(DEFS) $(INCLUDES)
|
|
|
|
##############################################################################
|
|
all: Makefile.depend whois mkpasswd pos
|