Revision
89358
Author
jberry@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

Diff

Modified: trunk/base/src/machista1.0/libmachista.c (89357 => 89358)


--- 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;