From 375597fedf50370f4be3654d2f7e6775fcae7879 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Wed, 1 Jun 2011 08:03:32 +0000 Subject: [PATCH] iSCSI-SCST: only define __packed for those kernels versions that do not have a definition for __packed. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3498 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi_hdr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/iscsi_hdr.h b/iscsi-scst/kernel/iscsi_hdr.h index 34ce6b338..821d63d15 100644 --- a/iscsi-scst/kernel/iscsi_hdr.h +++ b/iscsi-scst/kernel/iscsi_hdr.h @@ -23,7 +23,7 @@ #define ISCSI_VERSION 0 -#ifndef __packed +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 21) #define __packed __attribute__ ((packed)) #endif