Module Name: src Committed By: reinoud Date: Tue May 12 13:41:44 UTC 2009
Modified Files: src/sys/sys: cdefs.h Log Message: Fix _packed attribute for PCC. According to Ragge it should be _Pragma("packed 1") instead of _Pragma("packed"). With this fix userland programs needing _packed will now work. To generate a diff of this commit: cvs rdiff -u -r1.74 -r1.75 src/sys/sys/cdefs.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/sys/cdefs.h diff -u src/sys/sys/cdefs.h:1.74 src/sys/sys/cdefs.h:1.75 --- src/sys/sys/cdefs.h:1.74 Wed Apr 22 18:04:02 2009 +++ src/sys/sys/cdefs.h Tue May 12 13:41:44 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: cdefs.h,v 1.74 2009/04/22 18:04:02 christos Exp $ */ +/* $NetBSD: cdefs.h,v 1.75 2009/05/12 13:41:44 reinoud Exp $ */ /* * Copyright (c) 1991, 1993 @@ -214,7 +214,7 @@ #define __aligned(x) __attribute__((__aligned__(x))) #define __section(x) __attribute__((__section__(x))) #elif defined(__PCC__) -#define __packed _Pragma("packed") +#define __packed _Pragma("packed 1") #define __aligned(x) _Pragma("aligned " __STRING(x)) #define __section(x) _Pragma("section " ## x) #elif defined(__lint__)