mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
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:
parent
99ca5c0c22
commit
ff817eca28
@ -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
|
||||
|
@ -6,3 +6,4 @@
|
||||
#ifdef __attribute__
|
||||
#undef __attribute__
|
||||
#endif
|
||||
#endif /* OPENAFS_ROKEN_H */
|
||||
|
2
src/roken/roken-pre.h
Normal file
2
src/roken/roken-pre.h
Normal file
@ -0,0 +1,2 @@
|
||||
#ifndef OPENAFS_ROKEN_H
|
||||
#define OPENAFS_ROKEN_H
|
Loading…
Reference in New Issue
Block a user