summaryrefslogtreecommitdiffstats
path: root/sys/sys/cdio.h
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-02-01 18:18:54 +0000
committerache <ache@FreeBSD.org>1996-02-01 18:18:54 +0000
commitaa6525c79f8e657cf9fdef6f4fbd74bb1b2f5f85 (patch)
tree1a7fd3a1f2d5af211cd7094378e06f60c4e2646d /sys/sys/cdio.h
parentc96c09bb158b0af96d9c4ca1ba7aa8537d8493c6 (diff)
downloadFreeBSD-src-aa6525c79f8e657cf9fdef6f4fbd74bb1b2f5f85.zip
FreeBSD-src-aa6525c79f8e657cf9fdef6f4fbd74bb1b2f5f85.tar.gz
Frame whole file with #pragma pack(1) and #pragma pack(4),
structures listed here used to access hardware data directly
Diffstat (limited to 'sys/sys/cdio.h')
-rw-r--r--sys/sys/cdio.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/sys/cdio.h b/sys/sys/cdio.h
index b0e2fca..9c915f8 100644
--- a/sys/sys/cdio.h
+++ b/sys/sys/cdio.h
@@ -1,7 +1,7 @@
/*
* 16 Feb 93 Julian Elischer (julian@dialix.oz.au)
*
- * $Id: cdio.h,v 1.9 1996/01/30 02:56:08 mpp Exp $
+ * $Id: cdio.h,v 1.10 1996/02/01 16:16:11 ache Exp $
*/
/*
<1> Fixed a conflict with ioctl usage. There were two different
@@ -25,6 +25,12 @@
#ifndef _SYS_CDIO_H_
#define _SYS_CDIO_H_
+#ifdef __GNUC__
+#if __GNUC__ >= 2
+#pragma pack(1)
+#endif
+#endif
+
union msf_lba {
struct {
unsigned char unused;
@@ -259,5 +265,11 @@ struct ioc_capability { /*<2>*/
#define CDIOCCAPABILITY _IOR('c',30,struct ioc_capability) /*<2>*/
+#ifdef __GNUC__
+#if __GNUC__ >= 2
+#pragma pack(4)
+#endif
+#endif
+
#endif /* _SYS_CDIO_H_ */
OpenPOWER on IntegriCloud