From: Simon Wilkinson Date: Thu, 16 Dec 2010 11:35:54 +0000 (+0000) Subject: rx: Protect rx_atomic.h against multiple inclusion X-Git-Tag: upstream/1.8.0_pre1^2~4319 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=50b1c161e8bed6ad3625b4156dc6481c77ecd866;p=packages%2Fo%2Fopenafs.git 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 --- 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