diff options
author | jlam <jlam@pkgsrc.org> | 2004-08-20 23:10:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-08-20 23:10:32 +0000 |
commit | 5840d5f65d47c856b99f9466f04a92f1bf8a9896 (patch) | |
tree | 6206a91ae9c4bfbf108184b17acf57b30e5d0e60 /pkgtools/libnbcompat/files | |
parent | 7ed95560bf55bf0951786470b553ebde9ac8ccde (diff) | |
download | pkgsrc-5840d5f65d47c856b99f9466f04a92f1bf8a9896.tar.gz |
Deal with HAVE_NBTOOL_CONFIG_H in some sources on the HEAD.
Diffstat (limited to 'pkgtools/libnbcompat/files')
-rwxr-xr-x | pkgtools/libnbcompat/files/src2nbcompat | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/src2nbcompat b/pkgtools/libnbcompat/files/src2nbcompat index f5b22238238..d69b079c0f4 100755 --- a/pkgtools/libnbcompat/files/src2nbcompat +++ b/pkgtools/libnbcompat/files/src2nbcompat @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: src2nbcompat,v 1.6 2004/08/20 22:22:24 jlam Exp $ +# $NetBSD: src2nbcompat,v 1.7 2004/08/20 23:10:32 jlam Exp $ # # Copyright (c) 2003 The NetBSD Foundation, Inc. # All rights reserved. @@ -94,6 +94,14 @@ copy_file() # awk ' \ BEGIN { config = 0; nbcompat = 0 } \ + /^#[ ]*if[ ]+HAVE_NBTOOL_CONFIG_H/ { \ + if (config == 0) { \ + print "#if HAVE_CONFIG_H"; \ + print "#include \"config.h\""; \ + print "#endif"; \ + config = 1; \ + } \ + } \ /^#[ ]*include[ ]+/ { \ if (config == 0) { \ print "#if HAVE_CONFIG_H"; \ |