patches/chrpath-01-solaris.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 7866 3b4378975459
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7866
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     1
--- chrpath-0.14/protos.h	Mon Sep 26 20:13:23 2011
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     2
+++ chrpath-0.14-patch/protos.h	Sat Oct 29 23:02:41 2011
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     3
@@ -4,1 +4,1 @@
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     4
-#include <byteswap.h>
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     5
+#include <sys/byteorder.h>
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     6
@@ -36,4 +36,4 @@
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     7
-#define DO_SWAPU32(x) ( !swap_bytes() ? x : (uint32_t)bswap_32(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     8
-#define DO_SWAPU64(x) ( !swap_bytes() ? x : (uint64_t)bswap_64(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
     9
-#define DO_SWAPS32(x) ( !swap_bytes() ? x : (int32_t)bswap_32(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    10
-#define DO_SWAPS64(x) ( !swap_bytes() ? x : (int64_t)bswap_64(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    11
+#define DO_SWAPU32(x) ( !swap_bytes() ? x : (uint32_t)BSWAP_32(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    12
+#define DO_SWAPU64(x) ( !swap_bytes() ? x : (uint64_t)BSWAP_64(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    13
+#define DO_SWAPS32(x) ( !swap_bytes() ? x : (int32_t)BSWAP_32(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    14
+#define DO_SWAPS64(x) ( !swap_bytes() ? x : (int64_t)BSWAP_64(x) )
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    15
--- chrpath-0.14/chrpath.c	Mon Sep 26 20:13:45 2011
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    16
+++ chrpath-0.14-patch/chrpath.c	Sat Oct 29 23:02:58 2011
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    17
@@ -191,1 +191,1 @@
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    18
-        bswap_32(DT_RUNPATH) : DT_RUNPATH;
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    19
+        BSWAP_32(DT_RUNPATH) : DT_RUNPATH;
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    20
@@ -194,1 +194,1 @@
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    21
-        bswap_64(DT_RUNPATH) : DT_RUNPATH;
3b4378975459 SFEchrpath.spec: initial spec
jurikm
parents:
diff changeset
    22
+        BSWAP_64(DT_RUNPATH) : DT_RUNPATH;