roken: Add include guards to roken.h

To mitigate potential build problems in the future due to redundant
inclusion of the roken header, add include guards to the generated
roken.h file, just like the real roken.h has. The addition of these
guards ensures that the header is included only once, safeguarding
against potential future build issues.

Change-Id: Ia22076038d22e60aaaa8e20ab0265d5288c54f2d
Reviewed-on: https://gerrit.openafs.org/15678
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Marcio Barbosa 2024-04-02 15:22:55 +00:00 committed by Michael Meffie
parent 99ca5c0c22
commit ff817eca28
3 changed files with 5 additions and 2 deletions

View File

@ -77,8 +77,8 @@ $(TOP_INCDIR)/roken-common.h: $(UPSTREAM)/roken-common.h
err.h: ${UPSTREAM}/err.hin
$(INSTALL_DATA) $? $@
roken.h: $(UPSTREAM)/roken.h.in roken-post.h
cat $(UPSTREAM)/roken.h.in $(srcdir)/roken-post.h >$@
roken.h: $(UPSTREAM)/roken.h.in roken-pre.h roken-post.h
cat $(srcdir)/roken-pre.h $(UPSTREAM)/roken.h.in $(srcdir)/roken-post.h >$@
# Here we have explicit rules for all the libtool objects we might need to
# build. The implicit rules don't work since the sources are in a different

View File

@ -6,3 +6,4 @@
#ifdef __attribute__
#undef __attribute__
#endif
#endif /* OPENAFS_ROKEN_H */

2
src/roken/roken-pre.h Normal file
View File

@ -0,0 +1,2 @@
#ifndef OPENAFS_ROKEN_H
#define OPENAFS_ROKEN_H