aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 7e6ac1413fc..05b044f57cf 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1095,6 +1095,24 @@ the Bugs section of the Emacs manual or the file BUGS.\n", argv[0]);
1095#endif 1095#endif
1096 } 1096 }
1097 1097
1098 /* Gerd Moellmann <gerd@acm.org> says this makes profiling work on
1099 FreeBSD. It might work on some other systems too.
1100 Give it a try and tell me if it works on your system. */
1101#ifdef __FreeBSD__
1102#ifdef PROFILING
1103 if (initialized)
1104 {
1105 extern void _mcleanup ();
1106 extern char etext;
1107 extern void clear_glyph_matrix ();
1108 atexit (_mcleanup);
1109 monstartup (clear_glyph_matrix, &etext);
1110 }
1111 else
1112 moncontrol (0);
1113#endif
1114#endif
1115
1098 initialized = 1; 1116 initialized = 1;
1099 1117
1100#ifdef LOCALTIME_CACHE 1118#ifdef LOCALTIME_CACHE