Source-Changes-HG archive

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

[src/trunk]: src/share/examples/puffs fix build of puffs examples; need _KERN...



details:   https://anonhg.NetBSD.org/src/rev/d4b90634c165
branches:  trunk
changeset: 817589:d4b90634c165
user:      tnn <tnn%NetBSD.org@localhost>
date:      Fri Aug 26 22:12:22 2016 +0000

description:
fix build of puffs examples; need _KERNTYPES for register_t

diffstat:

 share/examples/puffs/icfs/Makefile    |  9 +++++----
 share/examples/puffs/pgfs/Makefile    |  7 +++++--
 share/examples/puffs/pnullfs/Makefile |  9 +++++----
 share/examples/puffs/rot13fs/Makefile |  9 +++++----
 4 files changed, 20 insertions(+), 14 deletions(-)

diffs (68 lines):

diff -r 9bb5a7039e5a -r d4b90634c165 share/examples/puffs/icfs/Makefile
--- a/share/examples/puffs/icfs/Makefile        Fri Aug 26 21:48:31 2016 +0000
+++ b/share/examples/puffs/icfs/Makefile        Fri Aug 26 22:12:22 2016 +0000
@@ -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
 
diff -r 9bb5a7039e5a -r d4b90634c165 share/examples/puffs/pgfs/Makefile
--- a/share/examples/puffs/pgfs/Makefile        Fri Aug 26 21:48:31 2016 +0000
+++ b/share/examples/puffs/pgfs/Makefile        Fri Aug 26 22:12:22 2016 +0000
@@ -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=
 
diff -r 9bb5a7039e5a -r d4b90634c165 share/examples/puffs/pnullfs/Makefile
--- a/share/examples/puffs/pnullfs/Makefile     Fri Aug 26 21:48:31 2016 +0000
+++ b/share/examples/puffs/pnullfs/Makefile     Fri Aug 26 22:12:22 2016 +0000
@@ -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
 
diff -r 9bb5a7039e5a -r d4b90634c165 share/examples/puffs/rot13fs/Makefile
--- a/share/examples/puffs/rot13fs/Makefile     Fri Aug 26 21:48:31 2016 +0000
+++ b/share/examples/puffs/rot13fs/Makefile     Fri Aug 26 22:12:22 2016 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index