Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/am-utils Fix building am-utils with MKYP=no



details:   https://anonhg.NetBSD.org/src/rev/e0f8b9fb9eae
branches:  trunk
changeset: 450735:e0f8b9fb9eae
user:      roy <roy%NetBSD.org@localhost>
date:      Wed Apr 24 10:28:17 2019 +0000

description:
Fix building am-utils with MKYP=no

diffstat:

 external/bsd/am-utils/Makefile.inc     |  4 ++--
 external/bsd/am-utils/include/config.h |  2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r 4c17f457bd37 -r e0f8b9fb9eae external/bsd/am-utils/Makefile.inc
--- a/external/bsd/am-utils/Makefile.inc        Wed Apr 24 10:27:49 2019 +0000
+++ b/external/bsd/am-utils/Makefile.inc        Wed Apr 24 10:28:17 2019 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.7 2015/02/02 16:18:27 christos Exp $
+#      $NetBSD: Makefile.inc,v 1.8 2019/04/24 10:28:17 roy Exp $
 
 .ifndef AMU_MAKEFILE_INC
 AMU_MAKEFILE_INC=
@@ -30,7 +30,7 @@
 .endif
 
 .if (${USE_YP} != "no")
-CPPFLAGS+=-DHAVE_MAP_NIS=1
+CPPFLAGS+=-DHAVE_MAP_NIS=1 -DYP
 .endif
 
 .if !defined(LIB) || empty(LIB)
diff -r 4c17f457bd37 -r e0f8b9fb9eae external/bsd/am-utils/include/config.h
--- a/external/bsd/am-utils/include/config.h    Wed Apr 24 10:27:49 2019 +0000
+++ b/external/bsd/am-utils/include/config.h    Wed Apr 24 10:28:17 2019 +0000
@@ -869,11 +869,13 @@
 /* Define to 1 if you have the <rpcsvc/nis.h> header file. */
 /* #undef HAVE_RPCSVC_NIS_H */
 
+#ifdef YP
 /* Define to 1 if you have the <rpcsvc/ypclnt.h> header file. */
 #define HAVE_RPCSVC_YPCLNT_H 1
 
 /* Define to 1 if you have the <rpcsvc/yp_prot.h> header file. */
 #define HAVE_RPCSVC_YP_PROT_H 1
+#endif
 
 /* Define to 1 if you have the <rpc/auth_des.h> header file. */
 /* #undef HAVE_RPC_AUTH_DES_H */



Home | Main Index | Thread Index | Old Index