Author: emaste
Date: Sat May 21 15:38:40 2016
New Revision: 300374
URL: https://svnweb.freebsd.org/changeset/base/300374

Log:
  elftoolchain: backwards compatability for ELFOSABI_CLOUDABI definition
  
  It is not provided by sys/elf_common.h on older releases or -current
  before March 2015.
  
  Reported by:  Jenkins

Modified:
  head/contrib/elftoolchain/brandelf/brandelf.c
  head/contrib/elftoolchain/elfcopy/main.c
  head/contrib/elftoolchain/readelf/readelf.c

Modified: head/contrib/elftoolchain/brandelf/brandelf.c
==============================================================================
--- head/contrib/elftoolchain/brandelf/brandelf.c       Sat May 21 15:15:11 
2016        (r300373)
+++ head/contrib/elftoolchain/brandelf/brandelf.c       Sat May 21 15:38:40 
2016        (r300374)
@@ -46,6 +46,11 @@
 
 ELFTC_VCSID("$Id: brandelf.c 3440 2016-04-07 14:51:47Z emaste $");
 
+/* Backwards compatability for older FreeBSD releases. */
+#ifndef ELFOSABI_CLOUDABI
+#define ELFOSABI_CLOUDABI 17
+#endif
+
 static int elftype(const char *);
 static const char *iselftype(int);
 static void printelftypes(void);

Modified: head/contrib/elftoolchain/elfcopy/main.c
==============================================================================
--- head/contrib/elftoolchain/elfcopy/main.c    Sat May 21 15:15:11 2016        
(r300373)
+++ head/contrib/elftoolchain/elfcopy/main.c    Sat May 21 15:38:40 2016        
(r300374)
@@ -41,6 +41,11 @@
 
 ELFTC_VCSID("$Id: main.c 3446 2016-05-03 01:31:17Z emaste $");
 
+/* Backwards compatability for older FreeBSD releases. */
+#ifndef ELFOSABI_CLOUDABI
+#define ELFOSABI_CLOUDABI 17
+#endif
+
 enum options
 {
        ECP_ADD_GNU_DEBUGLINK,

Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c Sat May 21 15:15:11 2016        
(r300373)
+++ head/contrib/elftoolchain/readelf/readelf.c Sat May 21 15:38:40 2016        
(r300374)
@@ -50,6 +50,9 @@
 ELFTC_VCSID("$Id: readelf.c 3469 2016-05-15 23:16:09Z emaste $");
 
 /* Backwards compatability for older FreeBSD releases. */
+#ifndef ELFOSABI_CLOUDABI
+#define ELFOSABI_CLOUDABI 17
+#endif
 #ifndef EM_IAMCU
 #define EM_IAMCU 6
 #endif
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to