aboutsummaryrefslogtreecommitdiffstats
path: root/gcmain.c
diff options
context:
space:
mode:
authorAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
committerAkinori Ito <aito@eie.yz.yamagata-u.ac.jp>2001-11-08 05:14:08 +0000
commit68a07bf03b7624c9924065cce9ffa45497225834 (patch)
treec2adb06a909a8594445e4a3f8587c4bad46e3ecd /gcmain.c
downloadw3m-68a07bf03b7624c9924065cce9ffa45497225834.tar.gz
w3m-68a07bf03b7624c9924065cce9ffa45497225834.zip
Initial revision
Diffstat (limited to '')
-rw-r--r--gcmain.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcmain.c b/gcmain.c
new file mode 100644
index 0000000..08b28f2
--- /dev/null
+++ b/gcmain.c
@@ -0,0 +1,27 @@
+#ifndef GC_MAIN
+#define GC_MAIN
+
+#if defined(AIX) || defined(linux)
+/* to cope with Boehm GC... */
+
+#define MAIN real_main
+
+#if defined(DEBIAN)
+#include "gc/private/gc_priv.h"
+#else
+#include "private/gc_priv.h"
+#endif
+int real_main(int, char **, char **);
+
+int
+main(int argc, char **argv, char **envp)
+{
+ int dummy;
+ GC_stackbottom = (ptr_t) (&dummy);
+ return (real_main(argc, argv, envp));
+}
+#else
+#define MAIN main
+#endif
+
+#endif