aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSteven Tamm2003-04-08 16:11:37 +0000
committerSteven Tamm2003-04-08 16:11:37 +0000
commite8f25745658d1226ccde6b5ae2f7eceaeda74446 (patch)
tree00c8ee28f7d79b3b4aa576f94a9991ccf3a70785 /src
parent7c08684536d59c03eea4863bd51f0d193f2749cb (diff)
downloademacs-e8f25745658d1226ccde6b5ae2f7eceaeda74446.tar.gz
emacs-e8f25745658d1226ccde6b5ae2f7eceaeda74446.zip
mac.c (init_mac_osx_environment): Switch libexec and bin so that self-
cohntained application find libexec files.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/mac.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6cfe3b2b6f8..4cd53e526cb 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12003-04-08 Steven Tamm <steventamm@mac.com>
2 * mac.c (init_mac_osx_environment): Switch libexec and bin so
3 that self-contained application finds libexec files.
4
12003-04-08 Kenichi Handa <handa@etlken2> 52003-04-08 Kenichi Handa <handa@etlken2>
2 6
3 * coding.c (code_convert_region_unwind): Set 7 * coding.c (code_convert_region_unwind): Set
diff --git a/src/mac.c b/src/mac.c
index a6b92db4680..ce2e4242493 100644
--- a/src/mac.c
+++ b/src/mac.c
@@ -2931,12 +2931,12 @@ init_mac_osx_environment ()
2931 q[0] = '\0'; 2931 q[0] = '\0';
2932 2932
2933 strcpy (p, app_bundle_pathname); 2933 strcpy (p, app_bundle_pathname);
2934 strcat (p, "/Contents/MacOS/bin"); 2934 strcat (p, "/Contents/MacOS/libexec");
2935 if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) 2935 if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR)
2936 strcat (q, p); 2936 strcat (q, p);
2937 2937
2938 strcpy (p, app_bundle_pathname); 2938 strcpy (p, app_bundle_pathname);
2939 strcat (p, "/Contents/MacOS/libexec"); 2939 strcat (p, "/Contents/MacOS/bin");
2940 if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR) 2940 if (stat (p, &st) == 0 && (st.st_mode & S_IFMT) == S_IFDIR)
2941 { 2941 {
2942 if (q[0] != '\0') 2942 if (q[0] != '\0')