$OpenBSD: patch-Source_cmELF_cxx,v 1.1 2013/06/25 07:16:46 dcoppa Exp $

commit 480e924daedee520d18c8a9c0b9823fef205b57a
Author: David Coppa <dcoppa@openbsd.org>
Date:   Fri Jun 21 11:13:35 2013 +0200

OpenBSD: Enable ELF parsing and editing

OpenBSD provides ELF ABI declarations in

#include <stdint.h>
#include <elf_abi.h>

Teach the platform check and cmELF implementation to use these.

--- Source/cmELF.cxx.orig	Wed May 15 19:38:13 2013
+++ Source/cmELF.cxx	Fri Jun 21 09:18:46 2013
@@ -19,7 +19,12 @@
 #include <cmsys/CPU.h>
 
 // Include the ELF format information system header.
-#include <elf.h>
+#if defined(__OpenBSD__)
+# include <stdint.h>
+# include <elf_abi.h>
+#else
+# include <elf.h>
+#endif
 #if defined(__sun)
 # include <sys/link.h> // For dynamic section information
 #endif
