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/5cf0b4a3310c
branches:  trunk
changeset: 347447:5cf0b4a3310c
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 1704938aa44a -r 5cf0b4a3310c 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 1704938aa44a -r 5cf0b4a3310c 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 1704938aa44a -r 5cf0b4a3310c 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 1704938aa44a -r 5cf0b4a3310c 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