From 205fb419413275b647cdfc199d05c205c350110b Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 20 Jun 2011 13:48:56 -0400 Subject: Add multiple inclusion protection to rpc/des.h If you try to include this file multiple times, you get a build failure due to redefinitions of enums and such. Signed-off-by: Mike Frysinger Signed-off-by: Steve Dickson --- tirpc/rpc/des.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tirpc/rpc/des.h b/tirpc/rpc/des.h index e3d6897..d2881ad 100644 --- a/tirpc/rpc/des.h +++ b/tirpc/rpc/des.h @@ -33,6 +33,9 @@ * Copyright (c) 1986 by Sun Microsystems, Inc. */ +#ifndef _RPC_DES_H_ +#define _RPC_DES_H_ + #define DES_MAXLEN 65536 /* maximum # of bytes to encrypt */ #define DES_QUICKLEN 16 /* maximum # of bytes to encrypt quickly */ @@ -80,3 +83,5 @@ struct desparams { * Software DES. */ extern int _des_crypt( char *, int, struct desparams * ); + +#endif -- cgit v1.2.1