* Makefile.in (krb5/krb5.h): Wrap the content in macro test for
authorKen Raeburn <raeburn@mit.edu>
Thu, 7 Sep 2006 22:16:45 +0000 (22:16 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 7 Sep 2006 22:16:45 +0000 (22:16 +0000)
multiple-inclusion protection.

ticket: 3522

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18571 dc483132-0cff-0310-8789-dd5450dbe970

src/include/Makefile.in

index d1c6b4251d3d9feb1c7eb2ccbb440cc6b92ac914..02e7b5e9f4cf0f327a14bf2ed8b684feebe1532a 100644 (file)
@@ -79,8 +79,11 @@ krb5/krb5.h: $(srcdir)/krb5/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h krb524_err
          if cmp -s krb5.h $(srcdir)/krb5.h; then :; else rm -f krb5.h; fi; \
        else :; fi
        echo "/* This file is generated, please don't edit it directly.  */" > krb5/krb5.h
+       echo "#ifndef KRB5_KRB5_H_INCLUDED" >> krb5/krb5.h
+       echo "#define KRB5_KRB5_H_INCLUDED" >> krb5/krb5.h
        cat $(srcdir)/krb5/krb5.hin krb5_err.h kdb5_err.h kv5m_err.h krb524_err.h \
                asn1_err.h >> krb5/krb5.h
+       echo "#endif /* KRB5_KRB5_H_INCLUDED */" >> krb5/krb5.h
 
 verify-calling-conventions-krb5: krb5/krb5.h
        $(PERL) -w $(SRCTOP)/util/def-check.pl krb5/krb5.h $(SRCTOP)/lib/krb5_32.def