mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
1879e1bce2
commit
50b1c161e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user