Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2018 21:19:57 +0000 (UTC)
From:      Conrad Meyer <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r328137 - head/sys/sys
Message-ID:  <201801182119.w0ILJvdf002074@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cem
Date: Thu Jan 18 21:19:57 2018
New Revision: 328137
URL: https://svnweb.freebsd.org/changeset/base/328137

Log:
  Add Elf_Nhdr definition to match NetBSD, OpenBSD, Linux
  
  The mesa port started to use this type and fails to build without it.
  
  NetBSD: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/exec_elf.h.diff?r1=1.26&r2=1.27&f=h
  OpenBSD: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/sys/exec_elf.h.diff?r1=1.21&r2=1.22&f=h
  
  PR:		225302
  Reported by:	Greg V <greg AT unrelenting.technology>
  Sponsored by:	Dell EMC Isilon

Modified:
  head/sys/sys/elf_common.h

Modified: head/sys/sys/elf_common.h
==============================================================================
--- head/sys/sys/elf_common.h	Thu Jan 18 20:45:41 2018	(r328136)
+++ head/sys/sys/elf_common.h	Thu Jan 18 21:19:57 2018	(r328137)
@@ -1,7 +1,7 @@
 /*-
  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
  *
- * Copyright (c) 2017 Dell EMC
+ * Copyright (c) 2017, 2018 Dell EMC
  * Copyright (c) 2000, 2001, 2008, 2011, David E. O'Brien
  * Copyright (c) 1998 John D. Polstra.
  * All rights reserved.
@@ -51,6 +51,7 @@ typedef struct {
 	u_int32_t	n_descsz;	/* Length of descriptor. */
 	u_int32_t	n_type;		/* Type of this note. */
 } Elf_Note;
+typedef Elf_Note Elf_Nhdr;
 
 /*
  * Option kinds.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801182119.w0ILJvdf002074>