Module Name:    src
Committed By:   tnn
Date:           Fri Aug 26 22:12:22 UTC 2016

Modified Files:
        src/share/examples/puffs/icfs: Makefile
        src/share/examples/puffs/pgfs: Makefile
        src/share/examples/puffs/pnullfs: Makefile
        src/share/examples/puffs/rot13fs: Makefile

Log Message:
fix build of puffs examples; need _KERNTYPES for register_t


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/share/examples/puffs/icfs/Makefile
cvs rdiff -u -r1.2 -r1.3 src/share/examples/puffs/pgfs/Makefile
cvs rdiff -u -r1.1 -r1.2 src/share/examples/puffs/pnullfs/Makefile
cvs rdiff -u -r1.1 -r1.2 src/share/examples/puffs/rot13fs/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/examples/puffs/icfs/Makefile
diff -u src/share/examples/puffs/icfs/Makefile:1.1 src/share/examples/puffs/icfs/Makefile:1.2
--- src/share/examples/puffs/icfs/Makefile:1.1	Sun Jun 24 18:32:00 2007
+++ src/share/examples/puffs/icfs/Makefile	Fri Aug 26 22:12:22 2016
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.1 2007/06/24 18:32:00 pooka Exp $
+#	$NetBSD: Makefile,v 1.2 2016/08/26 22:12:22 tnn Exp $
 
-PROG=	icfs
-LDADD+= -lpuffs -lutil
-DBG=-g -O0
+PROG=		icfs
+CPPFLAGS+=	-D_KERNTYPES
+LDADD+= 	-lpuffs -lutil
+DBG=		-g -O0
 
 WARNS=	3
 

Index: src/share/examples/puffs/pgfs/Makefile
diff -u src/share/examples/puffs/pgfs/Makefile:1.2 src/share/examples/puffs/pgfs/Makefile:1.3
--- src/share/examples/puffs/pgfs/Makefile:1.2	Mon Apr 22 13:27:08 2013
+++ src/share/examples/puffs/pgfs/Makefile	Fri Aug 26 22:12:22 2016
@@ -2,8 +2,11 @@
 PROG=	mount_pgfs
 SRCS=	mount.c pgfs_subs.c pgfs_db.c pgfs_puffs.c pgfs_waitq.c pgfs_debug.c
 
-DPADD+=	${LIBPUFFS} ${LIBUTIL}
-LDADD+=	-lpuffs -lutil
+DPADD+=		${LIBPUFFS} ${LIBUTIL}
+CPPFLAGS+=	-D_KERNTYPES
+LDADD+=		-lpuffs -lutil
+
+COPTS.pgfs_debug.c=	-Wno-format-nonliteral
 
 NOMAN=
 

Index: src/share/examples/puffs/pnullfs/Makefile
diff -u src/share/examples/puffs/pnullfs/Makefile:1.1 src/share/examples/puffs/pnullfs/Makefile:1.2
--- src/share/examples/puffs/pnullfs/Makefile:1.1	Thu Jan 11 01:03:03 2007
+++ src/share/examples/puffs/pnullfs/Makefile	Fri Aug 26 22:12:22 2016
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.1 2007/01/11 01:03:03 pooka Exp $
+#	$NetBSD: Makefile,v 1.2 2016/08/26 22:12:22 tnn Exp $
 
-PROG=	pnullfs
-LDADD+= -lpuffs -lutil
-DBG=-g -O0
+PROG=		 pnullfs
+CPPFLAGS+=	-D_KERNTYPES
+LDADD+=		-lpuffs -lutil
+DBG=		-g -O0
 
 WARNS=	2
 

Index: src/share/examples/puffs/rot13fs/Makefile
diff -u src/share/examples/puffs/rot13fs/Makefile:1.1 src/share/examples/puffs/rot13fs/Makefile:1.2
--- src/share/examples/puffs/rot13fs/Makefile:1.1	Mon Jan 15 00:46:29 2007
+++ src/share/examples/puffs/rot13fs/Makefile	Fri Aug 26 22:12:22 2016
@@ -1,8 +1,9 @@
-#	$NetBSD: Makefile,v 1.1 2007/01/15 00:46:29 pooka Exp $
+#	$NetBSD: Makefile,v 1.2 2016/08/26 22:12:22 tnn Exp $
 
-PROG=	rot13fs
-LDADD+= -lpuffs -lutil
-DBG=-g -O0
+PROG=		rot13fs
+CPPFLAGS+=	-D_KERNTYPES
+LDADD+= 	-lpuffs -lutil
+DBG=		-g -O0
 
 WARNS=	3
 

Reply via email to