mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
39
app-admin/chrpath/patches/chrpath-0.16.patchset
Normal file
39
app-admin/chrpath/patches/chrpath-0.16.patchset
Normal file
@@ -0,0 +1,39 @@
|
||||
From 5ce86fd44694055d87e2cc2a3e1500f293bfe3ed Mon Sep 17 00:00:00 2001
|
||||
From: Oscar Lesta <oscar.lesta@gmail.com>
|
||||
Date: Sat, 13 May 2023 16:47:24 -0300
|
||||
Subject: Fix build on Haiku
|
||||
|
||||
|
||||
diff --git a/protos.h b/protos.h
|
||||
index f24bc06..b16b1cc 100644
|
||||
--- a/protos.h
|
||||
+++ b/protos.h
|
||||
@@ -1,7 +1,14 @@
|
||||
#ifndef PROTOS_H
|
||||
#define PROTOS_H
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+ #include <ByteOrder.h>
|
||||
+ #define bswap_16 B_SWAP_INT16
|
||||
+ #define bswap_32 B_SWAP_INT32
|
||||
+ #define bswap_64 B_SWAP_INT64
|
||||
+#else
|
||||
#include <byteswap.h>
|
||||
+#endif
|
||||
#include <elf.h>
|
||||
#include "config.h"
|
||||
|
||||
@@ -25,6 +32,10 @@ typedef union {
|
||||
Elf64_Shdr e64;
|
||||
} Elf_Shdr;
|
||||
|
||||
+#ifdef __HAIKU__
|
||||
+ #undef Elf_Phdr
|
||||
+#endif
|
||||
+
|
||||
typedef union {
|
||||
Elf32_Phdr e32;
|
||||
Elf64_Phdr e64;
|
||||
--
|
||||
2.37.3
|
||||
|
||||
Reference in New Issue
Block a user