rx: Protect rx_atomic.h against multiple inclusion
authorSimon Wilkinson <sxw@your-file-system.com>
Thu, 16 Dec 2010 11:35:54 +0000 (11:35 +0000)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 2 Jan 2011 03:20:28 +0000 (19:20 -0800)
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>

src/rx/rx_atomic.h

index e59aad6..0b2d6af 100644 (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