Add ifdefs to protect the header files from being included

multiple times

From Richard Sharpe
This commit is contained in:
Ronnie Sahlberg
2011-02-25 14:25:45 +11:00
parent b5c1c8705a
commit e9749ee68c
3 changed files with 12 additions and 0 deletions

View File

@@ -14,6 +14,8 @@
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __scsi_lowlevel_h__
#define __scsi_lowlevel_h__
#define SCSI_CDB_MAX_SIZE 16
@@ -381,3 +383,6 @@ struct scsi_task *scsi_cdb_write10(uint32_t lba, uint32_t xferlen, int fua, int
struct scsi_task *scsi_cdb_synchronizecache10(int lba, int num_blocks,
int syncnv, int immed);
#endif /* __scsi_lowlevel_h__ */