rx: Protect rx_atomic.h against multiple inclusion

Add #ifdef guards so that rx_atomic.h can't be included in the same
C file multiple times.

Change-Id: Ic62287ce4a21b9efbfd9530e2517029a69217a56
Reviewed-on: http://gerrit.openafs.org/3580
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
Simon Wilkinson 2010-12-16 11:35:54 +00:00 committed by Jeffrey Altman
parent 1879e1bce2
commit 50b1c161e8

View File

@ -22,6 +22,9 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef OPENAFS_RX_ATOMIC_H
#define OPENAFS_RX_ATOMIC_H 1
#define RX_ATOMIC_INIT(i) { (i) }
#ifdef AFS_NT40_ENV
@ -280,3 +283,5 @@ rx_atomic_sub(rx_atomic_t *atomic, int change) {
}
#endif
#endif