From 50b1c161e8bed6ad3625b4156dc6481c77ecd866 Mon Sep 17 00:00:00 2001 From: Simon Wilkinson Date: Thu, 16 Dec 2010 11:35:54 +0000 Subject: [PATCH] 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 Tested-by: BuildBot --- src/rx/rx_atomic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rx/rx_atomic.h b/src/rx/rx_atomic.h index e59aad632..0b2d6af8c 100644 --- a/src/rx/rx_atomic.h +++ b/src/rx/rx_atomic.h @@ -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 -- 2.39.5