diff options
| author | jmcneill <jmcneill@NetBSD.org> | 2012-01-08 18:05:02 +0000 |
|---|---|---|
| committer | jmcneill <jmcneill@NetBSD.org> | 2012-01-08 18:05:02 +0000 |
| commit | 2e83d2540ea22f7902f01ea4cc7ec24addc0e5cb (patch) | |
| tree | 8dc1e7ea9b5aedab0979c352deb6e0162efc6892 /sys/arch/usermode/include | |
| parent | 301a1cdb063c9afcacbe4dd8c21858cd089aa536 (diff) | |
disklabel.h: handle __HAVE_OLD_DISKLABEL. while here, I noticed someone changed param.h without updating genheaders.h, so catch up.
Diffstat (limited to 'sys/arch/usermode/include')
| -rwxr-xr-x | sys/arch/usermode/include/genheaders.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/usermode/include/genheaders.sh b/sys/arch/usermode/include/genheaders.sh index 319a5bac811..bde24b4dbe6 100755 --- a/sys/arch/usermode/include/genheaders.sh +++ b/sys/arch/usermode/include/genheaders.sh @@ -45,15 +45,20 @@ EOF # header specific quirks if [ "$hdr" = "disklabel.h" ]; then + echo "#include <machine/types.h>" >> ${hdr} + echo "#ifndef __HAVE_OLD_DISKLABEL" >> ${hdr} echo "#undef DISKUNIT" >> ${hdr} echo "#undef DISKPART" >> ${hdr} echo "#undef DISKMINOR" >> ${hdr} + echo "#endif" >> ${hdr} elif [ "$hdr" = "ptrace.h" ]; then echo "#undef __HAVE_PTRACE_MACHDEP" >> ${hdr} echo "#undef __HAVE_PROCFS_MACHDEP" >> ${hdr} elif [ "$hdr" = "param.h" ]; then + echo "#undef UPAGES" >> ${hdr} + echo "#define UPAGES 6" >> ${hdr} echo "#undef USPACE" >> ${hdr} - echo "#define USPACE (PAGE_SIZE*4)" >> ${hdr} + echo "#define USPACE (PAGE_SIZE*UPAGES)" >> ${hdr} fi echo >>${hdr} |
