[89358] trunk/base/src/machista1.0/libmachista.c

jberry at macports.org jberry at macports.org
Thu Jan 26 10:37:45 PST 2012


Revision: 89358
          http://trac.macports.org/changeset/89358
Author:   jberry at macports.org
Date:     2012-01-26 10:37:43 -0800 (Thu, 26 Jan 2012)
Log Message:
-----------
Add a few missing structures and defines so that libmachista will at least compile on Tiger.
I haven't tested whether it would actually do anything meaningful, but this keeps the build from breaking on Tiger.

Modified Paths:
--------------
    trunk/base/src/machista1.0/libmachista.c

Modified: trunk/base/src/machista1.0/libmachista.c
===================================================================
--- trunk/base/src/machista1.0/libmachista.c	2012-01-26 15:52:45 UTC (rev 89357)
+++ trunk/base/src/machista1.0/libmachista.c	2012-01-26 18:37:43 UTC (rev 89358)
@@ -50,6 +50,23 @@
 #include "libmachista.h"
 #include "hashmap.h"
 
+/* Tiger compatibility */
+#ifndef LC_RPATH
+#define LC_RPATH       (0x1c | LC_REQ_DYLD)    /* runpath additions */
+/*
+ * The rpath_command contains a path which at runtime should be added to
+ * the current run path used to find @rpath prefixed dylibs.
+ */
+struct rpath_command {
+    uint32_t     cmd;       /* LC_RPATH */
+    uint32_t     cmdsize;   /* includes string */
+    union lc_str path;      /* path to add to run path */
+};
+#endif
+#ifndef LC_REEXPORT_DYLIB
+#define LC_REEXPORT_DYLIB (0x1f | LC_REQ_DYLD) /* load and re-export dylib */
+#endif
+
 typedef struct macho_input {
     const void *data;
     size_t length;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120126/3afe0f24/attachment.html>


More information about the macports-changes mailing list