Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/elftoolchain/dist/libelf lint has __alignof__ too.
details: https://anonhg.NetBSD.org/src/rev/63fcd43f615e
branches: trunk
changeset: 328790:63fcd43f615e
user: christos <christos%NetBSD.org@localhost>
date: Fri Apr 18 02:28:06 2014 +0000
description:
lint has __alignof__ too.
diffstat:
external/bsd/elftoolchain/dist/libelf/libelf_align.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 13ddbd09eea4 -r 63fcd43f615e external/bsd/elftoolchain/dist/libelf/libelf_align.c
--- a/external/bsd/elftoolchain/dist/libelf/libelf_align.c Fri Apr 18 02:17:14 2014 +0000
+++ b/external/bsd/elftoolchain/dist/libelf/libelf_align.c Fri Apr 18 02:28:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: libelf_align.c,v 1.2 2014/03/09 16:58:04 christos Exp $ */
+/* $NetBSD: libelf_align.c,v 1.3 2014/04/18 02:28:06 christos Exp $ */
/*-
* Copyright (c) 2006,2008 Joseph Koshy
@@ -38,7 +38,7 @@
#include "_libelf.h"
-__RCSID("$NetBSD: libelf_align.c,v 1.2 2014/03/09 16:58:04 christos Exp $");
+__RCSID("$NetBSD: libelf_align.c,v 1.3 2014/04/18 02:28:06 christos Exp $");
ELFTC_VCSID("Id: libelf_align.c 2225 2011-11-26 18:55:54Z jkoshy ");
struct align {
@@ -46,7 +46,7 @@
int a64;
};
-#ifdef __GNUC__
+#if defined(__GNUC__) || defined(__lint__)
#define MALIGN(N) { \
.a32 = __alignof__(Elf32_##N), \
.a64 = __alignof__(Elf64_##N) \
Home |
Main Index |
Thread Index |
Old Index